升级到2K8服务器,发生错误加载配置文件:未能开始监视对“\\\\ networkshare” [英] Upgrading to 2K8 Server, An error occurred loading a configuration file: Failed to start monitoring changes to '\\networkshare'

查看:572
本文介绍了升级到2K8服务器,发生错误加载配置文件:未能开始监视对“\\\\ networkshare”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我把我的网站掀起了2K3服务器转移到2K8服务器。该网站指出,以具有比由网站所使用的不同凭据的网络共享一个虚拟目录。我设置了虚拟目录使用正确的凭据,它可以通过资源管理器浏览的份额很好,但是当我尝试通过浏览器我得到以下asp.net错误加载文件(图像等):

I moved my site off of a 2k3 server over to a 2k8 server. The site has a virtual directory pointed to a network share which has different credentials than the one used by the site. I set the virtual directory to use the correct credentials and it can browse the share fine through explorer, but when I try to load files (images, etc) through a browser I get the following asp.net error:

配置错误描述:在发生错误
  此请求提供服务所需的配置文件的处理。
  请检查下面的特定错误详细信息并修改
  配置文件正确。

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.

分析器错误信息:发生错误加载配置文件:
  未能开始监视对\\\\ networkshare。

Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to '\\networkshare'.

源错误:

[没有相关的源行]

[No relevant source lines]

源文件:\\\\ networkshare \\ web.config行:0

Source File: \\networkshare\web.config Line: 0

版本信息:Microsoft .NET Framework版本:2.0.50727.5456;
  ASP.NET版本:2.0.50727.5456

Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456

网络共享没有一个web.config。

The network share does not have a web.config.

我尝试提供的解决方案<一个href=\"http://stackoverflow.com/questions/3271521/an-error-occurred-loading-a-configuration-file-failed-to-start-monitoring-chang\">here,但这并没有解决问题,本网站不使用模拟。我是否需要启用模拟?这是对WIN2K3正常工作。

I tried the solution provided here, but that did not solve the issue and this site isn't using impersonation. Do I need to enable impersonation? This was working correctly on win2k3.

推荐答案

好了,根据我们的意见听起来这可以是一个共享权限问题或NTFS权限问题(相同的分辨率,不同的对话框)。

OK, so based on our comments it sounds like this is either a share permissions problem or an NTFS permissions problem (same resolution, different dialog).

在IIS6您通常需要在运行为网​​络服务工作进程,这就是你给的权限来访问网络上的共享和文件。

In IIS6 you typically had the worker process running as NETWORK SERVICE and that's what you would give permissions to to access shares and files on the network.

在IIS7.5应用程序池现在下的应用程序池的身份运行,一个特定于该网站在其下运行的应用程序池。这个环节应该会有帮助: http://learn.iis.net/ page.aspx / 624 /应用程序池的身份/

In IIS7.5 the application pools now run under an AppPool identity, one specific to the application pool that the website is running under. This link should be helpful: http://learn.iis.net/page.aspx/624/application-pool-identities/

作为一个快速修复(尽管我建议你阅读起来就可以了),虽然,你可以进入应用程序池,进入高级属性,并设置身份回到 NETWORK SERVICE

As a quick fix (although I recommend reading up on it) though, you can go into the application pool, go to advanced properties, and set the identity back to NETWORK SERVICE.

这篇关于升级到2K8服务器,发生错误加载配置文件:未能开始监视对“\\\\ networkshare”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆