By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,784 Members | 1,205 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,784 IT Pros & Developers. It's quick & easy.

aspnet_wp account rights

P: n/a
I'm running an application under Framework 1.1 on a PDC.
I've got Aspnet_wp.exe running under a new account, to which I've given the
following rights:
a.. Access this computer from the network
b.. Log on as a batch job
c.. Log on as a service
a.. C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempora ry ASP.NET Files
FULL CONTROL
b.. C:\WINNT\temp FULL CONTROL
c.. C:\Inetpub\wwwroot\Test READ
d.. C:\WINNT\Microsoft.NET\Framework\v1.1.4322 READ
e.. C:\WINNT\assembly READ
f.. C:\Inetpub\wwwroot\ READ
g.. C:\WINNT\system32 READ
The error reported is below.

If I add the new account to the Administrators group, the app works fine.

Any ideas?

Thanks
Server Error in '/Test' Application.
----------------------------------------------------------------------------
----

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.

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() +503
System.EnterpriseServices.ResourcePool..ctor(Trans actionEndDelegate cb)
+11
System.Data.SqlClient.ConnectionPool..ctor(Default PoolControl ctrl) +797
System.Data.SqlClient.PoolManager.FindOrCreatePool (DefaultPoolControl
ctrl, IntPtr SID) +260

System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
tionString options, Boolean& isInTransaction) +358
System.Data.SqlClient.SqlConnection.Open() +384
System.Data.Common.DbDataAdapter.QuietOpen(IDbConn ection connection,
ConnectionState& originalState) +44
System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38
DataAccess.UserData.DBSetUserID(UserDataSet myDS, String userID) in
C:\VSProjects\Test\DataAccess\UserData.cs:49
BusinessFacade.UserSys..ctor(String UserID) in
C:\VSProjects\Test\BusinessFacade\UserSys.cs:19
Web.Module1.Page_Load(Object sender, EventArgs e) in
\\cityinsights01\wwwroot$\test\modules\Module1.asc x.cs:34
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +731

----------------------------------------------------------------------------
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

I was having the same problem this morning except I'm
running XP. I stepped through article below:

http://msdn.microsoft.com/architectu...cation/default
..aspx?pull=/library/en-us/dnnetsec/html/SecNetHT01.asp

I finally got because I didn't have full access on the
temp folder but it seems you have that.

Did you setup the identity tag in your web.config?

Dave
-----Original Message-----
I'm running an application under Framework 1.1 on a PDC.
I've got Aspnet_wp.exe running under a new account, to which I've given thefollowing rights:
a.. Access this computer from the network
b.. Log on as a batch job
c.. Log on as a service
a.. C:\WINNT\Microsoft.NET\Framework\v1.1.4322 \Temporary ASP.NET FilesFULL CONTROL
b.. C:\WINNT\temp FULL CONTROL
c.. C:\Inetpub\wwwroot\Test READ
d.. C:\WINNT\Microsoft.NET\Framework\v1.1.4322 READ
e.. C:\WINNT\assembly READ
f.. C:\Inetpub\wwwroot\ READ
g.. C:\WINNT\system32 READ
The error reported is below.

If I add the new account to the Administrators group, the app works fine.
Any ideas?

Thanks
Server Error in '/Test' Application.
--------------------------------------------------------- -----------------------

Access is denied.
Description: An unhandled exception occurred during the execution of thecurrent web request. Please review the stack trace for more informationabout the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is denied.
ASP.NET is not authorized to access the requested resource. Considergranting access rights to the resource to the ASP.NET request identity.ASP.NET has a base process identity (typically {MACHINE} \ASPNET on IIS 5 orNetwork Service on IIS 6) that is used if the application is notimpersonating. If the application is impersonating via <identityimpersonate="true"/>, the identity will be the anonymous user (typicallyIUSR_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 theappropriate user or group. Highlight the ASP.NET account, and check theboxes for the desired access.

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

Stack Trace:
[UnauthorizedAccessException: Access is denied.]
System.EnterpriseServices.Platform.Initialize() +503
System.EnterpriseServices.ResourcePool..ctor (TransactionEndDelegate cb)+11
System.Data.SqlClient.ConnectionPool..ctor (DefaultPoolControl ctrl) +797 System.Data.SqlClient.PoolManager.FindOrCreatePool (DefaultPoolControlctrl, IntPtr SID) +260

System.Data.SqlClient.SqlConnectionPoolManager.Ge tPooledC onnection(SqlConnectionString options, Boolean& isInTransaction) +358
System.Data.SqlClient.SqlConnection.Open() +384
System.Data.Common.DbDataAdapter.QuietOpen (IDbConnection connection,ConnectionState& originalState) +44
System.Data.Common.DbDataAdapter.FillFromCommand (Object data, Int32startRecord, Int32 maxRecords, String srcTable, IDbCommand command,CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,Int32 maxRecords, String srcTable, IDbCommand command, CommandBehaviorbehavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38 DataAccess.UserData.DBSetUserID(UserDataSet myDS, String userID) inC:\VSProjects\Test\DataAccess\UserData.cs:49
BusinessFacade.UserSys..ctor(String UserID) in
C:\VSProjects\Test\BusinessFacade\UserSys.cs:19
Web.Module1.Page_Load(Object sender, EventArgs e) in
\\cityinsights01\wwwroot$\test\modules\Module1.as cx.cs:34
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +731

--------------------------------------------------------- -----------------------

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NETVersion:1.1.4322.573
.

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.