您的位置:首页 > 移动开发

Server Error in '/' Application. Access to the Path Is Denied" error message appears

2007-05-21 15:20 1031 查看
把web应用程序上传到服务器上,在添加图片时发生了 Server Error in '/' Application. Access to the Path Is Denied" error message appears 错误,(服务器系统是2003的,)从网上查资料,解决了.方法如下:

就是在要上传图片的文件的属性中的安全中添加一个network server 的用户.给它相应的权限就OK了.比如下面:

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

This is caused by the ASP.NET worker process account or the Network Service Group not having sufficient permissions to the Temporary ASP.NET Files folder on the server. This situation can arise depending on the sequence of installing ASP.NET with respect to other Windows options.

Resolution

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

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

From the Start Menu, choose All Programs, choose Accessories and then click Windows Explorer.

Expand the folders to point to the Temporary ASP.NET Files folder.

From the File menu, click Properties.

Click the Security tab.

Select the ASPNET user name and choose the Allow Full Control option.

Select the NETWORK SERVICE user name and choose the Allow Full Control option.

Click OK.

The image below shows the Explorer window.



The image below shows the Properties window Security tab.



我插一句:-), 如果有那个文件或者目录说拒绝访问的话,就在第二步,也就第一个图那里选择特定的文件和目录。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐