代码之家  ›  专栏  ›  技术社区  ›  Jason N. Gaylord

访问网络共享会生成“无法开始监视对“\\Share”的更改,因为访问被拒绝。”

  •  2
  • Jason N. Gaylord  · 技术社区  · 15 年前

    我有两个网络应用程序都在同一个iis7盒。一个应用程序正在.NET 2.0的应用程序池中运行。另一个正在.NET 4的不同应用程序池中运行。两者都作为应用程序池标识运行,并且具有相同的设置。每个都包含一个网络共享的虚拟目录。要访问共享,需要使用用户名和密码进行连接。.NET2.0Web应用程序连接得很好。但是,.NET 4 web应用程序会生成一个错误,说明以下内容:

    Exception information:
        Exception type: System.Configuration.ConfigurationErrorsException
        Exception message: An error occurred loading a configuration file: Failed to start monitoring changes to '\\share' because access is denied. (\\share\web.config)
    
    Inner exception information (level 1):
        Exception type: System.Web.HttpException
        Exception message: Failed to start monitoring changes to '\\share' because access is denied.
    

    为什么这对一个有效而对另一个无效?

    权限正确:

    alt text http://uorcdn.com/foronlinesharing/20100702-0123pm.jpg

    1 回复  |  直到 15 年前
        1
  •  0
  •   Jason N. Gaylord    15 年前