Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Security exception when creating a database

Status
Not open for further replies.

jennyek2000

Programmer
Sep 2, 2003
43
GB
In my application I have used ADOX to create a database. The assembly I have created to run on all the computers has been given FULL TRUST by using the .NET framework wizards. Howerver, when I try to run the application and attempt to run the code that creates the database, I get the following error:

The application attempted to perform an operation not allowed by the security policy. The operation required the securityexception. To grant this application the required permission please contact your system administrator, or use the Microsoft .NET security policy administration tool.

System.Security.Permissions.SecurityPermission at ADOX.CatalogClass.Create(String connectionstring).

Can anyone tell me why Im getting this error even though the assembly has full trust and how to fix the problem - anyone had this problem before?

Thanks,
Jenny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top