Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
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 6-Dec-11 23:43pm
Edited 6-Dec-11 23:46pm
v3
Comments
Eduard Lu at 7-Dec-11 4:46am
   
EDIT: added "pre" tag
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You need to run aspnet_regiis.exe for both .NET Framework v2 and v4.
 
Regards,
Eduard
  Permalink  
Comments
Swapnil Bhosale at 22-May-14 7:28am
   
Thanks! It worked
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Comments
stuy at 16-Oct-12 18:23pm
   
This worked perfectly (and quickly).
rudysroost at 24-Oct-13 9:20am
   
This worked for me too. Thanks!
C#Sav at 19-Aug-14 6:25am
   
Worked 100%
Member 10488449 at 6-Sep-14 10:26am
   
Worked perfectly.Thanks
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

it works perfectly with
aspnet_regiis.exe -iru
  Permalink  
Comments
Gadipally Bharath at 7-May-14 2:22am
   
Awesome it worked, Thank you
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 7

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" />
  Permalink  

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

  Print Answers RSS
0 Kornfeld Eliyahu Peter 275
1 Maciej Los 204
2 Sergey Alexandrovich Kryukov 200
3 King Fisher 185
4 OriginalGriff 183
0 OriginalGriff 6,223
1 DamithSL 4,724
2 Maciej Los 4,196
3 Kornfeld Eliyahu Peter 3,894
4 Sergey Alexandrovich Kryukov 3,496


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 8 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100