Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

 

I have a windows server 2003 running with IIS6. I created a set of pages using aspx and vb.net that does content management for the rest of the site. The basics involve reading from htm files and then writing to them.

 

However, I'm getting this error

 


System.UnauthorizedAccessException: Access to the path "serverpath\default.htm" 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. 

 

 

So I go to my file and directory to give Network Service permission to write and modify. After this, I'm still getting the same error. Is there something that IIS doesn't agree with for the .NET environment? I've been so frustrated I gave Everyone account write and modify ability but still get the same error.

 

Are there any other permissions that I need to set, or are there any other settings that overrides this? Should I do something within my code that'll help solve this problem?

 

It worked perfectly fine on my personal web server with Windows XP pro running IIS 5

 

any help would be much appreciated, thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...