简体   繁体   English

ASP.NET 4 / IIS HTTP错误

[英]ASP.NET 4 / IIS HTTP Error

I am trying to setup an ASP.NET site locally, When I run the debugger I get no errors in the code, but when I goto the site I see the following: 我试图在本地设置一个ASP.NET站点,当运行调试器时,代码中没有出现错误,但是当我转到该站点时,看到以下内容:

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Module IIS Web Core Notification Unknown Handler Not yet determined Error Code 0x80070032 Config Error The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration Config File \\\\?\\C:\\SecondCity\\Website\\web.config Requested URL http://localhost:80/ Physical Path
Logon Method Not yet determined Logon User Not yet determined

How do I fix this, I believe this is an IIS issue, but everything I have researched is not clear to me how to fix this. 我如何解决此问题,我相信这是一个IIS问题,但是我研究的所有内容尚不清楚如何解决此问题。

Are you certain that you have the correct framework version set in your application pool? 您确定在应用程序池中设置了正确的框架版本吗? System.web.extensions will not be recognized in anything lower than .NET 4.0. 在低于.NET 4.0的任何版本中,都无法识别System.web.extensions。

I think it is related to configuration sections in web.config. 我认为这与web.config中的配置部分有关。 You need add section group like below in the 您需要在

                 <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

                         <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

                            <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>

                         <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

                            <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

                            <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

Please read the articles related to this from here 请从这里阅读与此相关的文章

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

相关问题 HTTP 错误 500.0 - ASP.NET 核心 IIS Dot.net 核心 3.1 中的托管失败(进程中) - HTTP Error 500.0 - ASP.NET Core IIS hosting failure (in-process) in Dot net core 3.1 为什么 IIS 中的 href URL 显示“HTTP 错误 404.0 - 未找到”错误? (ASP.NET MVC C#) - Why href URLs in IIS show "HTTP Error 404.0 - Not Found" error? (ASP.NET MVC C#) IIS上部署的ASP.NET Core给出错误:HTTP错误403.14-禁止 - ASP.NET Core deployed on IIS gives error: HTTP Error 403.14 - Forbidden 通过IIS获取Asp.Net的解析器错误 - getting Parser error for Asp.Net by IIS Asp.net 中 IIS 服务器的路径错误 - Error in the path of an IIS server in Asp.net 在IIS上部署ASP.NET WebApplication时出错 - Error deploying ASP.NET WebApplication on IIS ASP.NET IIS错误中的URL重写 - URL rewrite in ASP.NET IIS error ASP.NET 应用程序无法在 Win 10 和 IIS 10 上启动 - HTTP 错误 403.14 - 禁止 - ASP.NET application can not start on Win 10 and IIS 10 - HTTP Error 403.14 - Forbidden 为什么 ASP.NET 项目在通过 IIS 7 启动时会给出 HTTP 错误 500 - Why ASP.NET Project Gives HTTP Error 500 When Launched Through IIS 7 ASP.NET Core无法在IIS上发布,并显示HTTP错误502.5 - ASP.NET Core failed to publish on IIS, gives HTTP error 502.5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM