Changing User

H

Hari potter

Hi all,

I have an asp.net website that references some dlls. The web site has
been configured to use anonymous access(with windows credential user
name and password) and also Windows Authentication. When I am running
the web site, On trying to bind to the dll, I am getting an access
denied error. I can see that it is running as "NT AUTHORITY\SYSTEM".
How can I change it to run as my user acccount ? I tried
impersonate=true with authentication mode as windows..Does not Help :(
....Any ideas how to change it ?

here is the stack trace
------------------------------------------------------------------------------------------------------------
Assembly Load Trace: The following information can be helpful to
determine why the assembly 'AdHocQueryAppWS' could not be loaded.


Assembly manager loaded from:
C:\WINNT\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable
C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet_wp.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = NT AUTHORITY\SYSTEM
LOG: DisplayName = AdHocQueryAppWS
(Partial)
LOG: Appbase =
file:///C:/Dev/BOFA.PrimeBrokerage/Apps/Web/PrimeBrokerWeb/
LOG: Initial PrivatePath =
C:\Dev\BOFA.PrimeBrokerage\Apps\Web\PrimeBrokerWeb\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file:
C:\Dev\BOFA.PrimeBrokerage\Apps\Web\PrimeBrokerWeb\web.config
LOG: Using host configuration file:
C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/prd/8035db9b/136711ae/AdHocQueryAppWS.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET
Files/prd/8035db9b/136711ae/AdHocQueryAppWS/AdHocQueryAppWS.DLL.
LOG: Attempting download of new URL
file:///C:/Dev/BOFA.PrimeBrokerage/Apps/Web/PrimeBrokerWeb/bin/AdHocQueryAppWS.DLL.
ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing
terminated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top