Security Issues when calling DLL's
From: Chortler (chortler_at_fetchmail.co.uk)
Date: 12/19/03
- Next message: Michel Gallant: "Re: .NET CryptoAPITransform and KeyHandle interop"
- Previous message: Arno: "Re: Obtain< Domain>\<User> from System.DirectoryServices Query"
- Next in thread: Derek Slager: "Re: Security Issues when calling DLL's"
- Reply: Derek Slager: "Re: Security Issues when calling DLL's"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Michel Gallant: "Re: .NET CryptoAPITransform and KeyHandle interop"
- Previous message: Arno: "Re: Obtain< Domain>\<User> from System.DirectoryServices Query"
- Next in thread: Derek Slager: "Re: Security Issues when calling DLL's"
- Reply: Derek Slager: "Re: Security Issues when calling DLL's"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|