Could not load type 'System.ServiceModel.Activation.HttpModule'

前端 未结 8 1449
不思量自难忘°
不思量自难忘° 2020-12-28 19:32

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

Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.Ser

8条回答
  •  孤城傲影
    2020-12-28 20:13

    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

提交回复
热议问题