App Muncher

Issues faced - solutions identified - shared with community.

I came across this error while deploying an ORCHARD Application.

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

When attempting to run a service that receives messages over the HTTP transport, you may receive an error similar to the following:

Server Error in '/WCFApplication' Application

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


Solution:

To overcome this error i ran the ASP.NET IIS Registration, to register correct version of ASP.NET.

START --> All Programs --> Accessories, Right-Click COMMAND PROMPT and select RUN AS ADMIN.

Go to path
C:\Windows\Microsoft.NET\Framework64\v4.0.30319

Run Command

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -iru
Microsoft (R) ASP.NET RegIIS version 4.0.30319.18408
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Start installing ASP.NET (4.0.30319.18408).
.........
Finished installing ASP.NET (4.0.30319.18408).

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>iisreset

Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>


This solved the issue and i was able to access the web app.

On my test server i have multiple version of .NET Framework installed. This issue didn't occur earlier and i was able to deploy multiple applications on the same server.

The issue started after i added support for HTTPS in bindings on a specific port number.


No comments:

Post a Comment

| Designed by AppMuncher