RE: Changing User
- From: Peter Bromberg [C# MVP] <pbromberg@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Nov 2006 18:29:00 -0800
you can use <identity impesonate="true" userName="theUser" password="pass" />
However, from looking at the log you posted it looks like you have a
permissions issue on your temporar asp.net files folder. Where is the
location of this assembly you are referencing? Isn't it copied "Local" into
the /bin folder of the app? It should be, if it isn't in a project reference
to a project in your solution.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Hari potter" wrote:
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.
------------------------------------------------------------------------------------------------------------------
Thanks
Hari
- References:
- Changing User
- From: Hari potter
- Changing User
- Prev by Date: Difference
- Next by Date: extra DataKeyNames - Stored procedure too many arguments ??
- Previous by thread: Changing User
- Next by thread: Difference
- Index(es):
Relevant Pages
|