在win2008的iis7.5上安装和部署MVC3应用程序,运行时错误:

Server Error in '/' Application.


Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[TypeLoadException: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +314System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +95System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +124System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +76[ConfigurationErrorsException: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +11516844System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +69System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +62System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +264System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1356Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleReflectionUtil.GetIntegratedModuleCollection(HttpApplication target, IntPtr appContext) +34Microsoft.Web.Infrastructure.DynamicModuleHelper.CriticalStatics.Init(HttpApplication context) +269System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +575System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375[HttpException (0x80004005): Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11686912System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4863733

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

原因:在iis7或其他原.net 3.5的iis环境上安装.net4或更高版本后,没有更新注册

解决方案:

以.NET 4.0环境为例,执行以下Command:

cd "C:\Windows\Microsoft.NET\Framework64\v4.0.30319"

aspnet_regiis.exe -iru

引用:

http://social.msdn.microsoft.com/Forums/en/wcf/thread/39571e42-aca7-469d-8c68-aa59c2da4fcc

转载于:https://www.cnblogs.com/rynnwang/archive/2012/04/30/2477099.html

IIS7 上部署MVC3,执行错误:Could not load type 'System.ServiceModel.Activation.HttpModule'相关推荐

  1. Asp.net MVC应用在IIS7上部署后403错误解决方案

    Asp.net MVC应用在IIS7上部署后403错误解决方案 参考文章: (1)Asp.net MVC应用在IIS7上部署后403错误解决方案 (2)https://www.cnblogs.com/ ...

  2. WCF部署到IIS异常(详细: 不能加载类型System.ServiceModel.Activation.HttpModule )

    未能从程序集"System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&q ...

  3. 在IIS7上部署aspx网站

    在IIS7上部署aspx网站 2016-12-06 1 示例代码 WebForm.aspx内容: <html> <head><script language=" ...

  4. 在IIS7上部署FluorineFx找不到Fluorine.aspx问题的解决

    在IIS7下部署FlourineFx在打开Console的时候会提示Fluorine.aspx找不到的404错误.我开始遇到的时候也很郁闷,还好有万能的Google告诉我有这篇帖子:http://fo ...

  5. FluorineFX send失败,在IIS7上部署FluorineFx找不到Fluorine.aspx问题的解决

    转自:http://blog.sina.com.cn/s/blog_74fe278f010176lz.html 在IIS7下部署FlourineFx在打开Console的时候会提示Fluorine.a ...

  6. 在IIS7上部署FluorineFx找不到Fluorine.aspx的解决办法

    打开IIS7 Manger 选择部署Fluorine网关的网站 功能视图->IIS->模块 添加托管模块:名称-FluorineGateway,类型-FluorineFx.Fluorine ...

  7. 用TVM在硬件平台上部署深度学习工作负载的端到端 IR 堆栈

    用TVM在硬件平台上部署深度学习工作负载的端到端 IR 堆栈 深度学习已变得无处不在,不可或缺.这场革命的一部分是由可扩展的深度学习系统推动的,如滕索弗洛.MXNet.咖啡和皮托奇.大多数现有系统针对 ...

  8. 网站部署后Parser Error Message: Could not load type 的解决方案

    asp.net 的Webproject 项目是在64bit机上开发,默认选项发布后,部署到32bit的服务器上,出现Parser Error Message: Could not load type的 ...

  9. A网站引用B服务器虚拟目录文件导致:网站部署到IIS7上出现HTTP 错误 500.19(由于权限不足而无法读取配置文件)的问题

    A网站引用B服务器共享目录(虚拟目录)导致:网站部署到IIS7上出现HTTP 错误 500.19(由于权限不足而无法读取配置文件)的问题 本攻略并不是本机的部署导致的HTTP 错误 500.19 问题 ...

  10. Win2008上.NET4.0部署出错HTTP 错误 500.21 - Internal Server Error的解决方法

    Win2008上.NET4.0部署出错HTTP 错误 500.21 - Internal Server Error的解决方法 参考文章: (1)Win2008上.NET4.0部署出错HTTP 错误 5 ...

最新文章

  1. js+html5双人五子棋(源码下载)
  2. 运行时常量池在哪里_C++干货系列——从编译期常量谈到constexpr(一)
  3. C++类与static关键字
  4. 直击Titan图数据库:如何提升25%+的反欺诈检测效率?
  5. 内存表与 InnoDB表对比
  6. java hssfworkbook 乱码_java各种乱码汇总
  7. EasyPR转qt5-vs2013
  8. 原生列表table固定表头
  9. linux 安装p7zip 支持rar
  10. 端口扫描 -- scanport和superscan
  11. 官网正版UltraEdit、UltraFTP、UltraCompare安装激活使用
  12. 大物狭义相对论中的四维时空与闵氏时空图(上)
  13. ks 曲线_Ks密度曲线分布图绘图
  14. CSDN 中 MarkDown编辑器自动生成目录
  15. 【Python计量】参数假设检验
  16. 写一段wavefront_reader的代码
  17. 了解MVP(最小可行产品) - 以及为什么我更喜欢最早的可测试/可用/可爱
  18. Tomcat原理和源码分析
  19. 高等数学(第七版)同济大学 习题5-1 个人解答
  20. 【SHTSC2014】概率充电器(charger) 题解

热门文章

  1. kubernetes Deployment介绍
  2. windows 上网重新刷新IP
  3. html input 禁止浏览器自动填充
  4. thinkphp 按指定字段统计数据条数
  5. 解决excel导出大数字溢出或者被科学计数法格式化
  6. linux拆分文件会影响源文件吗,linux split拆分文件
  7. Leetcode199二叉树的右视图(宽搜)
  8. oracle脑裂的判断机制,Keepalived两节点出现双VIP的情况(脑裂)
  9. Spark API 之 cogroup 使用
  10. 微服务架构设计的简单理解