HTTP错误500.19-无法读取配置文件 [英] HTTP error 500.19 - Cannot read configuration file

查看:462
本文介绍了HTTP错误500.19-无法读取配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个ASP.NET应用程序中,由于下面显示的错误,突然我无法在Visual Studio 2013中运行它.似乎它试图从一个根本不存在的路径打开web.config.我所有的项目代码,包括web.config,都位于C:\ Projects \ SourceCode \ AFEManager \ Trunk \ AFEManager.Web下.我在这里发现了许多用户遇到类似错误的信息,但是解决方案似乎各不相同,到目前为止,我发现的解决方案似乎都不适合我的情况.我查看了TraceLogFiles目录,并且最近的日志文件已经存在了5天,所以自从我遇到这个问题以来,它显然没有记录任何内容.任何建议表示赞赏.

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 a path that doesn't even exist. All of my project code, including web.config, are located under C:\Projects\SourceCode\AFEManager\Trunk\AFEManager.Web. I've found a number of posts here from users experiencing a similar error, but the solutions seem to vary and none I've found so far seem applicable to my situation. I looked in that TraceLogFiles directory and the most recent log file there is five days old so it obviously hasn't been logging anything since I've been having this issue. Any suggestions are appreciated.

推荐答案

就我而言,我之前删除了D:\ My Documents \ My Web Sites \中的所有文件夹 然后我发现了错误 我的解决方案文件夹中有一个文件.vs \ config \ applicationhost.config 它包含对已删除文件夹的引用.因此,我删除了applicationhost.config,然后在项目属性网页中按了创建虚拟目录"按钮.重新创建了文件和文件夹

In my case I deleted all folders in D:\My Documents\My Web Sites\ before Then I caught the error There is a file .vs\config\applicationhost.config in my solution folder It contains reference to the deleted folder. So, I deleted applicationhost.config and then pressed 'Create Virtual Directory' button in my project property Web page. It was recreated the file and the folder

这篇关于HTTP错误500.19-无法读取配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆