Site Server General - Access is denied

This is Interesting: Free IT Magazines  
Home > Archive > Site Server General > January 2005 > Access is denied





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Access is denied
Ali_MH

2005-01-09, 5:55 pm

Hi All
I’m a starter in .net and I developed a ASP.Net web application.
My web application work properly when I run that on the localhost or I run
that on my computer with access the MSSQL database on the web server.
But when I copy project files on web server that’s not work and I retrieve
this Error:
-------------------------------------------------------------------------------------
Exception Details: System.UnauthorizedAccessException: Access is denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.

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
appropriate user or group. Highlight the ASP.NET account, and check the boxes
for the desired access.
----------------------------------------------------
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.]
System.EnterpriseServices.Platform.Initialize() +497
System.EnterpriseServices.ResourcePool..ctor(TransactionEndDelegate cb) +11

System.Data.SqlClient.ConnectionPool..ctor(DefaultPoolControl ctrl) +797
System.Data.SqlClient.PoolManager.FindOrCreatePool(DefaultPoolControl
ctrl) +170

System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +356
System.Data.SqlClient.SqlConnection.Open() +383
DKOL1.home.CTD() in c:\documents and
settings\ali\vswebcache\sara\dkol1\home.aspx.cs:264
DKOL1.home.AosFiller() in c:\documents and
settings\ali\vswebcache\sara\dkol1\home.aspx.cs:207
DKOL1.home.MngLst() in c:\documents and
settings\ali\vswebcache\sara\dkol1\home.aspx.cs:496
DKOL1.home.Page_Load(Object sender, EventArgs e) in c:\documents and
settings\ali\vswebcache\sara\dkol1\home.aspx.cs:86
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
-------------------------------------------------------------------------------------
I think problem maybe in project file path.
Would you please help me?
Sincerely
Ali

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com