Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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′.


i run aspnet_regiis.exe still i am getting same error

Please help us out its urgent
Posted
Updated 30-May-19 2:53am
v3
Comments
[no name] 7-Dec-11 4:46am    
EDIT: added "pre" tag

You need to run aspnet_regiis.exe for both .NET Framework v2 and v4.

Regards,
Eduard
 
Share this answer
 
Comments
Swapnil Bhosale 22-May-14 7:28am    
Thanks! It worked
This can be accomplished by using the –iru parameters when running aspnet_regiis.exe as follows:
aspnet_regiis.exe -iru

start-> Run--> c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -iru
 
Share this answer
 
Comments
stuy 16-Oct-12 18:23pm    
This worked perfectly (and quickly).
rudysroost 24-Oct-13 9:20am    
This worked for me too. Thanks!
SavDawg 19-Aug-14 6:25am    
Worked 100%
Member 10488449 6-Sep-14 10:26am    
Worked perfectly.Thanks
dhinamit 13-Jan-15 5:28am    
thanks.
Its working, super. but i dont know what is the issue of there. can u explain.
i removed and installed dotnet4.0 full set up, restarted the machine and run aspnet_regiis.exe for dotnet 4.0 as administrator then i set up iis application pool into v4.0 framework.


Finally i got result.Its working fine


Thank you
 
Share this answer
 
v2
it works perfectly with
aspnet_regiis.exe -iru
 
Share this answer
 
Comments
Gadipally Bharath 7-May-14 2:22am    
Awesome it worked, Thank you
CSS
If above methods don't work, then do the below mentioned activity.

Change this line in Windows/System32/ApplicationHost.config:

<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler" />

to

<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler,runtimeVersionv2.0" />
 
Share this answer
 
1. Delete whole folder of your old problematic project
2. Start VS, and you will be shown Create New Project and some links to your latest project.
3. One of the links is your old problematic project, click it!
4. Since you have deleted the folder, VS will ask to remove the link. Say YES.
5. Create your new project, now the problem is gone (hopefully).
 
Share this answer
 
From the Start menu, choose All Programs, and then choose Accessories.

Right-click Command Prompt, and then choose Run as administrator.

At the command prompt, type the following command to change to the Microsoft.NET\Framework64\v4.0.30319 folder, and then press Enter.

cd\Windows\Microsoft.NET\Framework64\v4.0.30319

At the command prompt, type the following command, and then press Enter.

aspnet_regiis.exe -iru

At the command prompt, type the following command, and then press Enter.

iisreset
 
Share this answer
 
Comments
[no name] 21-Oct-16 5:29am    
Yeah...already asked and answered with the same solution FIVE years ago.
Add the below code in web.config and set the set the .net frame work version as 4.5.

<system.webserver>
<modules runallmanagedmodulesforallrequests="true">


if still same issue, try iis reset to fix this issue.


Regards,
Narendra K
 
Share this answer
 
Comments
CHill60 31-May-19 7:53am    
Except 4.5 came out in 2012 and the OP asked the question in 2011.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900