Posted on: 1/7/2014 9:56:14 PM | Views : 647

Hi,
We're hosting our own website in our web server (IIS 7.0), Windows Web Server 2008 R2.  The website directory is inside the inetpub/wwwroot.  The website accesses data inside a folder (TxtInputOutput) which is located in wwwroot directory.
When compiling, the website accesses the files in TxtInputOutput folder without any problem.  However, after publishing the website, we're getting the following error:
 "Attempted to perfrom an unauthorized operation.  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 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating.  If the application is impersonating via <identity impersonate="true"/>, the iden ...

Go to the complete details ...