Security Issues when calling DLL's

From: Chortler (chortler_at_fetchmail.co.uk)
Date: 12/19/03


Date: 19 Dec 2003 02:45:06 -0800

I have a asp.net page that calls a VB6 DLL that lists all the services
running on a machine. The code returns the services for the local
machine, but none of the networked machines. (See error below)
I've modified the web.config to impersonate a domain admin acct, and
this is appears to be working as I've added the following code:-

Dim username As String =
System.Security.Principal.WindowsIdentity.GetCurrent().Name
Response.Write(username)

Does anyone have any ideas as I'm slowly going around the twist! Many
Thanks.
Adrian...

I get the following error:

Server Error in '/spider' Application.
--------------------------------------------------------------------------------

Security Exception
Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the required
permission please contact your system administrator or change the
application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Permission
denied



Relevant Pages

  • Somebody please help - Request for the permission of type System.Web.AspNetHostingPermission [..
    ... Server Error in '/' Application. ... Security Exception ... permission please contact your system administrator or change the ... Exception Details: System.Security.SecurityException: Request for the ...
    (microsoft.public.dotnet.languages.vb)
  • System.Security.SecurityException: Request
    ... To grant this application the required permission ... System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) ... controls the access to the user environment variables. ... a security exception is raised when you run the ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Security Exception in TslStream.EndRead
    ... Steven Cheng ... Microsoft Online Support ... | Thread-Topic: Security Exception in TslStream.EndRead ... What's the current permission set ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Security Exception in TslStream.EndRead
    ... > | Thread-Topic: Security Exception in TslStream.EndRead ... I see no evidence of permission ... > |> Steven Cheng ... > |> Microsoft Online Support ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Security Exception in TslStream.EndRead
    ... Also, due to the limitation of newsgroup, I'd recommend you consider ... Microsoft Online Support ... | Thread-Topic: Security Exception in TslStream.EndRead ... I see no evidence of permission ...
    (microsoft.public.dotnet.framework.aspnet.webservices)