IIS 7.5 HTTP 500.19内部服务器错误配置无效

问题描述:

我正在将Windows 2008 R2与IIS 7.5结合使用,并将网站的源映射到网络驱动器.当我这样做时,会发生以下错误.当指向本地c:驱动器时,网站可以正常工作.

I am using Windows 2008 R2 with IIS 7.5 and have mapped the source of my website to a network drive. When I do, the below error occurs. When pointing to the local c: drive the website works.

Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information
Module  IIS Web Core
Notification    Unknown
Handler Not yet determined
Error Code  0x80070003
Config Error    Cannot read configuration file
Config File \\?\H:\ExcelAutomation\1.0\src\docs\web.config
Requested URL   http://vmwws085381.msad.ms.com:80/index.html
Physical Path   
Logon Method    Not yet determined
Logon User  Not yet determined

Config Source
   -1: 
    0: 

对我来说,解决方案是打开IIS,单击我的站点,然后在高级设置"下将网络共享的物理路径更改为\\server\share\..,而不是使用映射的驱动器.

The solution for me was to open up IIS, click on my site, and under Advanced Settings change the physical path to the network share like \\server\share\.. instead of using the mapped drive.

可以帮助我实现此解决方案的原始资源在这里: http://forums.iis.net/t/1157959 .aspx

Original source that helped me arrive to this solution is here: http://forums.iis.net/t/1157959.aspx