HTTP错误500.19-内部服务器错误0x80070003无法读取配置文件 [英] HTTP Error 500.19 - Internal Server Error 0x80070003 Cannot read configuration file
问题描述
发布应用程序并将其从开发服务器移至生产服务器时,出现上述错误.下面是错误的详细信息.
I'm getting the above error when I publish my application and move it from development to production server. Below are the error details.
详细的错误信息
模块化IIS Web核心
Module IIS Web Core
通知BeginRequest
Notification BeginRequest
处理程序尚未确定
错误代码0x80070003
Error Code 0x80070003
配置错误无法读取配置文件
Config Error Cannot read configuration file
配置文件\?\ C:\ inetpub \ wwwroot \ WorkmenCompTest \ web.config
Config File \?\C:\inetpub\wwwroot\WorkmenCompTest\web.config
请求的URL http://localhost:80/wictest
物理路径C:\ inetpub \ wwwroot \ WorkmenCompTest
Physical Path C:\inetpub\wwwroot\WorkmenCompTest
登录方式尚未确定
尚未确定登录用户
该网站以前可以正常工作,但是由于该错误,最近发布的版本停止了工作.据我所知,唯一的变化是通过nuget安装了iTextSharp和iTextSharp xmlworker.
This website used to work previously but recently the published version stopped working due to this error. As far as I can tell, the only change was installing iTextSharp and iTextSharp xmlworker through nuget.
我尝试过,但没有成功:
I have tried, without success:
- 将站点文件夹上的修改权限授予所有人
- 检查web.config文件,并使用旧版本的web.config文件(从网站工作时开始).
- 卸载iTextSharp和iTextSharp XMLWorker
该项目在Visual Studio中仍然可以正常运行.
The project still runs without issue from Visual Studio.
推荐答案
已解决.该错误是由文件夹名称与虚拟目录的路径不匹配引起的.哇,我觉得很蠢.
This is solved. The error was caused by the folder name not matching the path for the virtual directory. Oh wow I feel dumb.
这篇关于HTTP错误500.19-内部服务器错误0x80070003无法读取配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!