asp.net – 无法加载类型’System.ServiceModel.Activation.HttpModule’

我运行aspnet_regiis.exe仍然我得到相同的错误

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,
PublicKeyToken=b77a5c561934e089′.

请帮忙我紧急

解决方法

如果您运行 Windows 8,此方法将无法正常工作.微软不会让你运行这个命令,告诉你:

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.

原因是在这链接http://support.microsoft.com/kb/2736284.

我有用的解决方案是在这链接上发布的,在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

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....