Problem with Security exception

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pleb
    New Member
    • Dec 2007
    • 8

    #1

    Problem with Security exception

    im doing a project which connects .net to a database
    i get an error each time it runs
    Code:
    objCustomersDA.FillSchema(objDataSet, SchemaType.Source, "Customers")
    this line keeps giving the error
    "Request for the permission of type 'System.Data.Ol eDb.OleDbPermis sion, System.Data, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed."

    can anyone tell me where im going wrong ?
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    One method may be set it as "This is a partial trust application", then click on the "Advanced" button and enabled "Debug this application with the selected permission set". Go back and reset the application as a "Full trust application". HTH.

    Comment

    • pleb
      New Member
      • Dec 2007
      • 8

      #3
      thanks for taht i fixed it... however im now getting...
      Error creating Win32 resources: Error reading icon 'C:\Documents and Settings\Applic ation Data\Microsoft\ VisualStudio\8. 0\VSProjectAppl ication.ico' -- The system cannot find the file specified.

      any ideas?
      thanks in advance

      Comment

      Working...