Chad Mancl

Chad Mancl

  • NA
  • 11
  • 0

Security Exception Opening SqlConnection After Invoking Dll

Jun 16 2009 4:21 PM
Hello....

Thanks in advance for any help you can give me...

I am trying to load a Dll on the fly (C# .net Assembly 2.0) which works just fine.  I can Load the assembly, get the type, and invoke the member.  I can step into the dll loaded, but I am getting a SecurityExeption stating...

"Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

The dll is located on another server.  This server is used by multiple other applications to call Com Objects and is used for referencing .Net Assemblies, but I need to call this dynamically because the Dll name will be pulled out of a database.

I'm getting the exception on the SqlConnection.Open()

thanks for your help...

Chad