【问题标题】:Integrated app pool and virtual directories集成应用程序池和虚拟目录
【发布时间】:2014-01-17 16:09:28
【问题描述】:

我有使用集成应用程序池的 MVC 应用程序。

在这个 MVC 应用程序下,我创建了一个指向我们的文件服务器位置的虚拟目录。此文件服务器有一些 pdf 和自定义图像。

当我们尝试通过虚拟目录访问资源时,出现以下错误:

Server Error in '/' Application.

Configuration Error

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 '\\nas2\CardDeck\web.config'.

Source Error: 


[No relevant source lines]

Source File: \\nas2\CardDeck\web.config    Line: 0 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 

当我将应用程序池更改为经典时,我可以正常访问这些资源。我在这里错过了什么?

谢谢

【问题讨论】:

    标签: asp.net-mvc-4 iis-7 virtual-directory


    【解决方案1】:

    应用程序池以“NetworkService”身份运行。

    我已将其更改为对盒子具有管理员权限的用户帐户。

    我仍然需要弄清楚的是,为什么这些以经典的应用程序池和网络服务为身份工作?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-02-25
      • 2013-11-16
      • 1970-01-01
      • 1970-01-01
      • 2011-01-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多