Security.Permissions.SecurityPermission

  • Thread starter Thread starter hames.bond
  • Start date Start date
H

hames.bond

G'day,

I have 2 Win2003 servers, 1 is my database server, 1 runs IIS

On the IIS machine I have an ASP.NET 2 application that makes a call to
a proprietry 3rd party COM Object/DLL that makes a call to a database
on server number 2.

When the DLL call is run, I get
"Security.Permissions.SecurityPermission" error and thats all it says.

Does anybody have any idea how I get around this? Im a newbie to ASP
and have full trust set in the web.config file.

Thanks in advance!
 
G'day,

I have 2 Win2003 servers, 1 is my database server, 1 runs IIS

On the IIS machine I have an ASP.NET 2 application that makes a call to
a proprietry 3rd party COM Object/DLL that makes a call to a database
on server number 2.

When the DLL call is run, I get
"Security.Permissions.SecurityPermission" error and thats all it says.

There should be quite a bit more information available if you dig a bit.
For example, are you able to retrieve the value returned by the exception's
ToString method? This should include further details regarding the
exception, including the call stack at the time it was thrown.

Does anybody have any idea how I get around this? Im a newbie to ASP
and have full trust set in the web.config file.

It's likely that your application-level configuration is not able to
override the machine-level configuration managed by the machine
administrator. If you end up needing to elevate your application's CAS
privilege, you will almost certainly need to enlist the machine admin's
help.
 
Back
Top