c# - 如何解决 '/' 应用程序中的服务器错误(配置错误)

标签 c# visual-studio-2012 web-config

我的 Web 应用程序在几分钟前运行良好,现在我在运行时遇到此错误。

我该如何解决这个问题,因为它甚至不是我项目文件的一部分?

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config line 285)

Line 285: add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"**

enter image description here

最佳答案

我可能应该在发布问题之前完成此操作。

我保存了我的工作,然后重新启动了 Visual Studio。

关于c# - 如何解决 '/' 应用程序中的服务器错误(配置错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21626217/

相关文章:

svn - Tortoise SVN & Ankh/Visual SVN?

asp.net - 如何确定哪个父配置文件正在锁定 web.config 设置?

asp.net - 当redirectMode = ResponseRewrite 时,为什么 HttpContext.Session 为 null

c# - 在 web.config 文件中添加命名空间有什么好处?

c# - MVC 提交按钮未触发

c++ - Visual Studio 2012 for windows 8 不显示 win32 控制台应用程序选项

c# - 如何模拟 ShareDirectoryClient GetFilesAndDirectoriesAsync xUnit

c - mkdir 函数在 C 中不起作用

C#后缀和前缀递增/递减重载区别

c# - StreamWriter-“\”和“/”之间的区别