Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET process is not authorized to access....

Status
Not open for further replies.

christheprogrammer

Programmer
Jul 10, 2000
258
CA
Hi everyone,

Ok, I am getting the error message:

Access to the path "E:\ is denied.
The ASP.NET process id not authorized to access the requested resource. For security reasons the default ASP.NET process identity is {machinename}\ASPNET, which has limited priviledges. Consider granting access rights to the resource to the ASP.NET process identity.

Well, I have my ASPNET user at full control (write permissions for the directory) and it still gives me this error. I am trying to use forms-based authentication, but for some reason windows wants to take control and a login dialog comes up 3 times after which this error screen appears. I have changed the security in the IIS so that it is anonymous only - no integrated security.
The error appears on a line which I have the following:

Dim textFileStream as New System.IO.StreamWriter("E:\wwwroot\mypath\filename.txt")

Any help would be greatly appreciated!

Cheers Chris
 
OOps, on the previous post the error message should read:

Access to the path "E:\wwwroot\mypath\filename.txt" is denied.
The ASP.NET process id not authorized to access the requested resource. For security reasons the default ASP.NET process identity is {machinename}\ASPNET, which has limited priviledges. Consider granting access rights to the resource to the ASP.NET process identity.
Chris
 
Answered my own question - I had

<identity impersonate=&quot;true&quot;/>

in my web.config file. For Forms based authentication, this is not used.

;) Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top