次の方法で共有


Trouble with CM 2012 App Catalog Web Site…

So I ran into an issue I have run into now twice so in case there is a third time, I can refer back to this entry!  If after installing the Application Web Catalog web site and web service in CM 2012, you receive this when browsing to the site:

 

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

 

Try running this:

aspnet_regiis.exe /iru

The aspnet_regiis.exe file can be found in either

  • %windir%\Microsoft.NET\Framework\v4.0.30319
  • %windir%\Microsoft.NET\Framework64\v4.0.30319 (on a 64-bit machine)

…a customer I was working with re-stumbled upon this for me as we were getting his lab installation working.  Apparently this has to do with the order in which you add the IIS components – specifically, if you enable the WCF services AFTER you install .NET framework, this can occur.  Also credit this web site for pointing this out:  https://devonenote.com/2010/06/could-not-load-type-system-servicemodel-activation-httpmodule/.