HTTP error 500.19 - Cannot read configuration file

前端 未结 13 2227
醉梦人生
醉梦人生 2021-02-02 09:37

In one of my ASP.NET apps, all of a sudden I am unable to run it in Visual Studio 2013 due to the error displayed below. It appears that it is trying to open the web.config from

13条回答
  •  臣服心动
    2021-02-02 10:05

    Here is a solution i have found.

    https://gyorgybalassy.wordpress.com/2015/03/06/i-asked-for-a-vs-folder-and-the-vs-team-gave-it-to-me/

    (1)Find the applicationhost.config file in |YourSolution|\.vs\config

    (2)Modify the VirtualDirectory PhysicalPath To your project.

    (3)Restart solution. Start project.

    (4)If it's still not working, try to check setting in your IISExpress config. If there is not site setting, copy And paste the setting to |UserOnYourComputer|\Documents\IISExpress\config\applicationhost.config

    (5)Change the id to other id which not be used in IISExpress applicationhost.config.

    (6)Start your project.

提交回复
热议问题