IIS错误 Server Error in '/' Application. Access to the Path Is Denied

来源:互联网 发布:免费群发短信的软件 编辑:程序博客网 时间:2024/04/28 20:18
 

"Server Error in '/' Application. Access to the Path <Path> IsDenied" error message appears

Cause

This is caused by the ASP.NET worker process account or the NetworkService Group not having sufficient permissions to the Temporary ASP.NET Filesfolder on the server. This situation can arise depending on the sequence ofinstalling ASP.NET with respect to other Windows options.

Resolution

To resolve this, change the security so that Full Control is allowed forthe ASPNET and NETWORK SERVICE accounts on the following folder:

%windir%/Microsoft.NET/Framework/Version/Temporary ASP.NET Files

  1. From the Start Menu, choose All Programs, choose Accessories and then click Windows Explorer.
  2. Expand the folders to point to the Temporary ASP.NET Files folder.
  3. From the File menu, click Properties.
  4. Click the Security tab.
  5. Select the ASPNET user name and choose the Allow Full Control option.
  6. Select the NETWORK SERVICE user name and choose the Allow Full Control option.
  7. Click OK.

The image below shows the Explorer window.

Explorer window

The image below shows the Properties window Security tab.

Properties window Security tab

 我插一句:-), 如果有那个文件或者目录说拒绝访问的话,就在第二步,也就第一个图那里选择特定的文件和目录。

原创粉丝点击