RE: Changing User



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


.



Relevant Pages

  • some config error happens periodically only
    ... An error occurred during the processing of a configuration file ... Policy not being applied to reference at this time (private, custom, ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework)
  • some config error happens periodically only
    ... An error occurred during the processing of a configuration file ... Policy not being applied to reference at this time (private, custom, ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Version Conflict! :(
    ... I am dittoing Evan on this. ... Also make sure none of the compiled bits you are using have any reference. ... LOG: Using application configuration file: C:\hol\WebStatisticReports\web.config ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework)
  • Interop.MSDASC
    ... An error occurred during the processing of a configuration file ... Policy not being applied to reference at this time (private, custom, ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework.aspnet)
  • Configuration Error...
    ... An error occurred during the processing of a configuration file ... Parser Error Message: Access is denied: 'WebChart'. ... LOG: DisplayName = WebChart ... LOG: Post-policy reference: WebChart ...
    (microsoft.public.dotnet.framework.aspnet)