问题描述
我在查看应用程序时收到此错误.
I receive this error when I view an application.
HTTP 错误 500.22 - 内部服务器错误(已检测到不适用于集成托管管道模式的 ASP.NET 设置.)
HTTP Error 500.22 - Internal Server Error (An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.)
.Net framework 2.0、3.5 和 4 已安装,我使用的是 SQL 2008.谁能告诉我这个错误的解决方案是什么?
.Net framework 2.0, 3.5 and 4 are installed and I am using SQL 2008. Can anyone tell me what the solution is for this error?
推荐答案
此问题是由您的网站设置的应用程序池设置中的管道模式引起的.
This issue is caused by the pipeline mode in your Application Pool setting that your web site is set to.
短
- 简单方法将应用程序池模式更改为启用经典管道的模式.
- 正确的方式您的 web.config/web 应用需要更改以支持集成管道.通常这就像删除部分 web.config 一样简单.
简单的方法(不好的做法)将以下内容添加到您的 web.config.请参阅 http://www.iis.net/ConfigReference/system.webServer/validation
- Simple way Change the Application Pool mode to one that has Classic pipeline enabled.
- Correct way Your web.config / web app will need to be altered to support Integrated pipelines. Normally this is as simple as removing parts of your web.config.
Simple way (bad practice) Add the following to your web.config. See http://www.iis.net/ConfigReference/system.webServer/validation
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
长如果可能,最好的办法是更改应用程序以支持集成管道.IIS6 和 IIS7.x 之间存在许多会导致此错误的更改.您可以在此处找到有关这些更改的详细信息 http://learn.iis.net/page.aspx/381/aspnet-20-break-changes-on-iis-70/.
Long If possible, your best bet is to change your application to support the integrated pipelines. There are a number of changes between IIS6 and IIS7.x that will cause this error. You can find details about these changes here http://learn.iis.net/page.aspx/381/aspnet-20-breaking-changes-on-iis-70/.
如果您无法做到这一点,则需要更改应用程序池,这可能更难执行,具体取决于您对 Web 服务器的可用性.
If you're unable to do that, you'll need to change the App pool which may be more difficult to do depending on your availability to the web server.
- 转到网络服务器
- 打开 IIS 管理器
- 导航到您的网站
- 点击右侧操作面板上的高级设置
- 在应用程序池下,将其更改为已启用经典的应用程序池.
检查 http://technet.microsoft.com/en-us/library/cc731755(WS.10).aspx 了解更改应用程序池的详细信息
Check http://technet.microsoft.com/en-us/library/cc731755(WS.10).aspx for details on changing the App Pool
如果您需要使用经典管道创建应用程序池,请查看 http://technet.microsoft.com/en-us/library/cc731784(WS.10).aspx
If you need to create an App Pool with Classic pipelines, take a look at http://technet.microsoft.com/en-us/library/cc731784(WS.10).aspx
如果您无权访问服务器来进行此更改,则需要通过您的托管服务器执行此操作并联系他们寻求帮助.
If you don't have access to the server to make this change, you'll need to do this through your hosting server and contact them for help.
欢迎提问.
这篇关于HTTP 错误 500.22 - 内部服务器错误(已检测到不适用于集成托管管道模式的 ASP.NET 设置.)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)