Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_security thread: Access denied for ASP.NET site


Message #1 by "prasanna raghunathrao shetye" <prasanna@p...> on Tue, 10 Dec 2002 08:45:06
Hi
  I am getting following error for a running commerce server asp.net 
application . I authenticated MachineName/ASPNET user for site as well as 
database . But still it is not working. Can any one guide me to get out of 
this problem please.

Thank You.

---------------------------------------------------------------------------
Access is denied. 

Description: An unhandled exception occurred during the execution of the 
current web request. Please review the stack trace for more information 
about the error and where it originated in the code. 

Exception Details: System.UnauthorizedAccessException: Access is denied. 

The ASP.NET process is not authorized to access the requested resource. 
For security reasons the default ASP.NET process identity is '{machinename}
\ASPNET', which has limited privileges. Consider granting access rights to 
the resource to the ASP.NET process identity. 

To grant ASP.NET write access to a file, right-click the file in Explorer, 
choose "Properties" and select the Security tab. Click "Add" to add 
the "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check 
the Write box in the Allow column.

Source Error: 

An unhandled exception was generated during the execution of the current 
web request. Information regarding the origin and location of the 
exception can be identified using the exception stack trace below.  

Stack Trace: 


[UnauthorizedAccessException: Access is denied.]
   Microsoft.CommerceServer.Interop.AuthManagerClass.Initialize(String 
bstrSiteName) +0
   Microsoft.CommerceServer.Runtime.CommerceContext.get_AuthManagerComClass
() +95
   Microsoft.CommerceServer.Runtime.AuthManager..ctor(String siteName, 
DebugContext debugContext) +143
   
Microsoft.CommerceServer.Runtime.CommerceAuthenticationModule.OnBeginReques
t(Object sender, EventArgs e) +110
   System.Web.SyncEventExecutionStep.Execute() +60
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& 
completedSynchronously) +87

 


  Return to Index