简体   繁体   English

获取HTTP错误500.19 - 内部服务器,其中应用程序指向错误的web.config位置

[英]Getting HTTP error 500.19 -Internal server where application pointing to wrong web.config location

I am facing issue in Asp.net mvc 5 application. 我在Asp.net mvc 5应用程序中遇到问题。 Whenever I am executing the application, it is causing an HTTP Error 500.19 and detail error description its showing 每当我执行应用程序时,它都会导致显示HTTP错误500.19和详细错误说明

Cannot read configuration file 无法读取配置文件

But the configuration file which it is showing is not correct. 但它显示的配置文件不正确。 The location shown is already deleted by me. 显示的位置已被我删除。

Why it is still pointing to previous deleted location. 为什么它仍指向先前删除的位置。

Try these steps: 请尝试以下步骤:

  • Go to projects properties -web and then under servers click on Create Virtual Directory and try running it 转到项目属性-web,然后在服务器下单击Create Virtual Directory并尝试运行它

  • Clean the solution, rebuild it and re run it 清理解决方案,重建并重新运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM