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

前端 未结 14 633
挽巷
挽巷 2020-12-04 07:37

I\'m running my Web Project in IIS.

It is a 4.0 Framework APP.

I have a Service.svc and I get this error when I run my Application.

\"

14条回答
  •  时光说笑
    2020-12-04 08:33

    I got this error after I accidentally published one website into the directory of another website. The two websites had different versions of .net. What fixed it for me was changing the application pool. To do that, in the IIS manager:

    click the website => Advanced Settings... (on the right) => click to the right of Application Pool => a button with "..." should appear => select ".NET v4.5 Classic"

    If that application pool doesn't work, try some of the others.

提交回复
热议问题