System.ServiceModel.Activati​​on.HttpModule错误 [英] System.ServiceModel.Activation.HttpModule error

查看:143
本文介绍了System.ServiceModel.Activati​​on.HttpModule错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是什么错误的下面一行的原因是什么?

 <的System.Web>
    <全球化fileEncoding =UTF-8requestEncoding =UTF-8的ResponseEncoding =UTF-8文化=FA-IR的UICulture =FA-IR/>
    <编译targetFramework =4.0调试=真正的>
      <组件> <添加组件=System.Data.Entity的,版本= 4.0.0.0,文化=中性公钥= b77a5c561934e089/>
 

解决方案

这发生在你安装.Net 4启用IIS之前,或者如果您在注册.NET 4在这两种情况下,后注册WCF,你的应用程序池将要运行NET 2.0(也就是,如果您已经注册WCF要求.NET 3的CLR版本,如果你有.NET 4中后,安装了IIS它安装ASP.Net 3.5,或默认))。

有多处提到这个网页,例如在在MSDN博客: <一href="http://blogs.msdn.com/b/webtopics/archive/2010/04/28/system-typeloadexception-for-system-servicemodel-activation-httpmodule-in-asp-net-4.aspx">http://blogs.msdn.com/b/webtopics/archive/2010/04/28/system-typeloadexception-for-system-servicemodel-activation-httpmodule-in-asp-net-4.aspx

解决方法是从正确的(32位或64位)框架文件夹(Framework64 64位服务器上)重新注册ASP.Net 4,使用ASPNET_REGIIS.EXE工具,如:

ASPNET_REGIIS.EXE -iru

what is the cause of this error on below line?

<system.web>
    <globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="fa-IR" uiCulture="fa-IR" />
    <compilation targetFramework="4.0" debug="true">
      <assemblies> <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral,  PublicKeyToken=b77a5c561934e089" />

解决方案

This happens when you install .Net 4 before enabling IIS, or if you register WCF after registering .Net 4. In either case, your App Pools will be running .Net 2.0 (which is the CLR version required for .Net 3 if you have registered WCF, which installs ASP.Net 3.5, or the default if you have installed IIS after .Net 4)).

There are many references to this on the web, e.g. the MSDN blogs: http://blogs.msdn.com/b/webtopics/archive/2010/04/28/system-typeloadexception-for-system-servicemodel-activation-httpmodule-in-asp-net-4.aspx

The fix is to re-register ASP.Net 4 from the correct (32 or 64 bit) Framework folder (Framework64 on a 64bit server), using the aspnet_regiis.exe tool, e.g.

aspnet_regiis.exe -iru

这篇关于System.ServiceModel.Activati​​on.HttpModule错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆