未能加载类型'System.ServiceModel.Activati​​on.HttpModule“ [英] Could not load type 'System.ServiceModel.Activation.HttpModule'

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

问题描述

我跑ASPNET_REGIIS.EXE还是我得到同样的错误:


  

这是无法加载类型System.ServiceModel.Activati​​on.HttpModule
  程序集System.ServiceModel,版本= 3.0.0.0,文化=中立,
  公钥= b77a5c561934e089'。说明:未处理的异常
  当前Web请求的执行过程中发生。请
  检查堆栈跟踪有关该错误以及更多信息
  它起源于code。异常详细信息:
  System.TypeLoadException:未能加载类型
  从程序集System.ServiceModel.Activati​​on.HttpModule
  System.ServiceModel,版本= 3.0.0.0,文化=中立,
  公钥= b77a5c561934e089'。


请帮我出其迫切


解决方案

如果您运行的是Windows 8,这个方法是行不通的。微软不会让你运行此命令,告诉你这一点:


  

    

这个选项不支持这个版本的操作系统。管理员应改为安装/卸载使用ASP.NET 4.5与IIS8的打开Windows功能打开/关闭对话框中,服务器管理器的管理工具,或dism.exe命令行工具。


  

造成这种情况的原因是此链接: http://support.microsoft.com/kb/2736284

这对我来说是发布此链接,由NEHA答案工作解决办法:<一href=\"http://stackoverflow.com/questions/4374639/system-servicemodel-activation-httpmodule-error/15523900#15523900\">System.ServiceModel.Activation.HttpModule错误


  

    

目的地的问题向此溶液中提到重新注册ASPNET通过使用ASPNET_REGIIS.EXE。但是,这并没有为我工作。


    
    

虽然这是一个有效的解决方案(如这里精美的解释)


    
    

但它并没有与Windows 8的工作。


    
    

有关Windows 8中,你需要Windows功能,并在.NET Framework 3.5的和.Net框架4.5高级服务使一切。


    
    

由于NEHA


  

I am run aspnet_regiis.exe still i am getting same error:

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′.

Please help me out its urgent

解决方案

If you are running Windows 8, this method will not work. Microsoft will not let you to run this command, telling you this:

This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog, the Server Manager management tool, or the dism.exe command line tool.

The reasons for this are on this link: http://support.microsoft.com/kb/2736284 .

The solution that worked for me is posted on this link, on the answer by Neha: System.ServiceModel.Activation.HttpModule error

Everywhere the problem to this solution was mentioned as re-registering aspNet by using aspnet_regiis.exe. But this did not work for me.

Though this is a valid solution (as explained beautifully here)

but it did not work with Windows 8.

For Windows 8 you need to Windows features and enable everything under ".Net Framework 3.5" and ".Net Framework 4.5 Advanced Services".

Thanks Neha

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

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