aspnet_wp account rights

Z

zalbermere

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\Temporary 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(TransactionEndDelegate cb)
+11
System.Data.SqlClient.ConnectionPool..ctor(DefaultPoolControl ctrl) +797
System.Data.SqlClient.PoolManager.FindOrCreatePool(DefaultPoolControl
ctrl, IntPtr SID) +260

System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnec
tionString 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, 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.ascx.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
 
D

Dave

Hi,

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

http://msdn.microsoft.com/architecture/application/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 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 \Temporary 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 (TransactionEndDelegate cb)
+11
System.Data.SqlClient.ConnectionPool..ctor (DefaultPoolControl ctrl) +797
System.Data.SqlClient.PoolManager.FindOrCreatePool (DefaultPoolControl
ctrl, IntPtr SID) +260

System.Data.SqlClient.SqlConnectionPoolManager.GetPooledC onnection(SqlConnec
tionString 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, 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.ascx.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


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top