one of my clients have a external website running on a Microsoft SBS 2008 server where users can login and view PDF files. However after the administrator of the website has made some changes, users are now getting this error:
"Server Error in '/' Application.
--------------------------
Access to the path '\\server01\salg\cash\doku
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.UnauthorizedAccessE
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
To grant ASP.NET 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:
[UnauthorizedAccessExcepti
System.IO.__Error.WinIOErr
System.IO.FileStream.Init(
System.IO.FileStream..ctor
System.IO.FileStream..ctor
System.IO.File.OpenRead(St
TechPeople.members.ShowAva
System.Web.Util.CalliHelpe
System.Web.Util.CalliEvent
System.Web.UI.Control.OnLo
System.Web.UI.Control.Load
System.Web.UI.Page.Process
--------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209 "
I've been trying to find out which account it is that requires access but with no luck. Can someone please help me?
Thanks in advance,
Ronnie
Solution : -
Are you using aspnet user for any specific reason? IIS6 onwards you should use " NETWORK Services " user account. Please change the identity of application pool to Network Service and restart the application pool.
If it does not help then please share the information about the Operating System's bit version and IIS version. Please see that Read only permission is only for sharing permission for user everyone. It is safe and secure.a
No comments:
Post a Comment