返回首页

你好女士们,先生们,

我目前正在创建一个文件夹,需要,我们有一个文件服务器上创建的文件夹写入文件。当我做一个localhost的测试,它工作的很好,但是当我访问网站以外的localhost,并从另一台电脑。它说,

System.UnauthorizedAccessException: Access to the path 'My File Server URL' 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 , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

 

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.

但事实是,我已经设置=在web.config中的"真实"的身份冒充,它仍然没有奏效。我的Web服务器上运行络筒机Server 2003和IIS 6。我想加入网络服务和IIS_WKG权限的文件夹,也不能正常工作。

任何建议和帮助下,将深表感谢

感谢布兰登

回答

评论会员: 时间:2
H