无法读取配置节“ appSettings”,因为它缺少节声明

时间:2019-03-29 14:00:50

标签: .net server frameworks

我正在清除ASP.NET临时Internet文件,并且意外删除了框架文件夹中的某些文件。我已经做了4.0。现在,Visual Studio 2013无法打开。当尝试在应用程序池中运行设置为32位的应用程序时,尽管appSettings在删除事件之前正常运行,但web.config appSettings中出现错误。我不知道出了什么问题以及如何解决此问题。我正在使用Windows Server2016。我尝试在Windows功能中打开或关闭iis。我们可以做些什么来还原。

IIS错误:

HTTP错误500.19-内部服务器错误

无法访问请求的页面,因为该页面的相关配置数据无效。

错误代码

0x80070032

配置错误

无法读取配置节“ appSettings”,因为它缺少节声明

配置文件:

1 个答案:

答案 0 :(得分:0)

问题出在Visual Studio和IIS? 尝试从Windows控制面板修复Visual Studio的安装。关于IIS-有与此相关的帖子-http://kb.act.com/app/answers/detail/a_id/22001/~/how-to-uninstall-and-reinstall-asp.net-from-the-command-prompt

cd %windir%\Microsoft.NET\Framework64\v4.0.30319
aspnet_regiis.exe –i

.Net Framework本身可能存在一些问题,Microsoft开发了一种工具来解决一些常见问题-https://www.microsoft.com/en-us/download/details.aspx?id=30135

如果无法修复Visual Studio,请尝试将其卸载,然后重新安装。还有一个旧的(已存档)程序可帮助卸载Visual Studio-https://github.com/Microsoft/VisualStudioUninstaller/releases

我希望这会有所帮助!

相关问题