作者:jiankunking 出处:http://blog.csdn.net/jiankunking

今天在本地安装iis。搭建站点,应用程序的时候报错以下的错误:

server错误
Internet Information Services 7.5
错误摘要
HTTP 错误 500.19 - Internal Server Error
无法訪问请求的页面,由于该页的相关配置数据无效。
具体错误信息
模块 IIS Web Core
通知 BeginRequest
处理程序 尚未确定
错误代码 0x80070032
配置错误 无法读取配置节“system.web.extensions”,由于它缺少节声明
配置文件 \\?\E:\12.service\AMACService\web.config
请求的 URL http://localhost:8088/AMACService/AMACService.svc
物理路径 E:\12.service\AMACService\AMACService.svc
登录方法 尚未确定
登录用户 尚未确定
配置源
25: </system.web>
26: <system.web.extensions>
27: <scripting>
链接和很多其它信息
当读取 Web server或 Web 应用程序的配置文件出现故障时,就会发生此错误。在某些情况下,事件日志会包括有关导致此错误的原因的很多其它信息。 查看很多其它信息 »

执行环境先检查下:
1.已经安装.net 4.0执行库
2.设置站点基于.net4.0

3.改动“托管管道模式”,Set the Manage Pipeline mode from Integrated to Classic (由集成到经典)

然并软。问题还是没有解决。

最后在微软的论坛找到了解决的办法

This is because config section hasn't declared. in 4.0 webconfig you have to add it manually.

<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<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"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>


如上加入后,在iis7的管理介面不再报错!

本文參考:http://blog.csdn.net/maxwoods/article/details/8723221

最新文章

  1. LINQ系列:C#中与LINQ相关特性
  2. [译]angularjs directive design made easy
  3. Population-based metagenomics analysis reveals markers for gut microbiome composition and diversity
  4. 如何在远程计算机上运行PowerShell
  5. 在WCF中使用消息队列
  6. Oracle体系结构知识点的运用
  7. Windows 7 64位下解决不能创建Django项目问题
  8. iOS插件化研究之中的一个——JavaScriptCore
  9. 自制Https证书并在Spring Boot和Nginx中使用(转)
  10. 二分 Intel Code Challenge Elimination Round (Div.1 + Div.2, combined) D
  11. 编写快速、高效的JavaScript代码
  12. 构造器和多态(Chapter8.3)
  13. 实时ETL
  14. gdb调试的layout使用
  15. Shiro笔记(四)编码/加密
  16. html5-文件的基本格式
  17. js 中 0 和 null 、&quot;&quot; Boolean 值关系
  18. python 实现查找某个字符在字符串中出现次数,并以字典形式输出
  19. pentestbox更新msf
  20. codepen &amp; js demos

热门文章

  1. 封装cookie的获取,设置与查找
  2. [CTSC2016]单调上升路径
  3. Qt之QFileIconProvider
  4. [Test] Easy automated testing in NodeJS with TestCafe
  5. poj-2758 Checking the Text
  6. Android触碰事件
  7. 利用 border 实现的图片选区效果,只需一层图一蒙层
  8. POJ 2528 Mayor&amp;#39;s posters 离散化和线段树题解
  9. Vim 删除不包含指定字符串的行及统计匹配个数
  10. zookeeper的理解与概述