当前位置:编程学习 > C#/ASP.NET >>

IIS7中部署MVC2开发的程序, 需要有一个虚拟目录,是内网中其他服务器上的共享文件。

IIS7中部署MVC2开发的程序,  需要有一个虚拟目录读取图片信息,是内网中其他服务器上的共享文件。 总是访问不了这个虚拟目录中的文件。
发现去掉modules 这个节点就能访问图片路径了, 但是程序会出错。
<system.webServer>
  <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
 
错误消息:
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to '\\10.10.10.20\imgs' because access is denied.

everyone的权限也加了。  可就是不能访问。 IIS7 MVC2 modules  system.webServer --------------------编程问答-------------------- 顶起来, 别沉了~~~ --------------------编程问答-------------------- 远程共享的文件夹是读写方式共享的吗?
试试web.config中加上 <identity impersonate="true" userName="administrator" password="xxx" /> --------------------编程问答-------------------- 没碰到过
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,