3

I have three web servers running Windows Server 2008. Two are clustered, the third a standalone server (two live, one test). They use shared configuration with the configuration file located on a central file server. Every so often one live web server will stop responding. The event log shows the following error.

The worker process for application pool 'My Website' encountered an error 'Configuration file is not well-formed XML
' trying to read configuration data from file '\\?\C:\inetpub\temp\apppools\My Website\My Website.config', line number '3'.  The data field contains the error code.

The config file has the following data

<!-- ERROR: There's been an error reading or processing the applicationhost.config file.  Line number: 0  Error message: Cannot read configuration file
 -->

There is nothing in the event viewer on the file server.

When I restart the web server everything works fine.

Any ideas?

Edit

I have around 30 websites. 10 are true standalone websites running in their own application pools. The other 20 are old websites that just redirect all requests to a different URL (some on my server, some external), these share the same application pool.

One of the 10 "standalone" websites is running php. One is .NET 2.0. One is classic asp with two virtual directories set up to run as a .NET 2.0 applications. The other 7 are running classic asp only.

4

2 回答 2

2

它已经很老了,但我来到这里是因为我今天遇到了这个问题,而且它似乎仍然存在。原因通常是 DFSR 特性,如果运行集群,这一特性尤其有效。有三种可能的解决方案。

尽管有修补程序,但我个人最喜欢第三个选项。


这个迟到的答案的目的是文档,因为其他人可能会来到这里,并且该页面在 Google 上的排名似乎很高。

于 2017-11-22T19:42:50.560 回答
0

这是一个很长的镜头,但是...如果通过 netbios 访问该文件并且定期访问该文件,则您可能对文件服务器的打击太大,并且 Windows 认为您正在尝试进行 DOS 攻击,因此它开始拒绝请求。这也可能是由于防火墙在访问文件服务器时解释了这一点。

另外,从这里检查一下iis用户的临时文件夹是否已满,问题可能不仅是文件服务器,还可能是临时存储配置文件失败。

你能分享一些你的服务器布局的卷信息吗?(# 应用程序池 / # 网站等)

编辑:

我假设您对此解决方法不感兴趣,特别是如果这意味着更改文件的位置:)

于 2013-02-18T21:39:52.200 回答