Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL WCF LINQ
Hi,
 
I developed one web application using wcf services in my application.It working fine.But my problem is,when i hosted in iis(my local system),it showing an error like,
 
Server Error in '/WCFService' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
 
Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
 
Source Error:
 
Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 25: <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 26: </assemblies>
 

Source File: c:\inetpub\wwwroot\WCFService\web.config Line: 24
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
 
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
 
My web.config file is::
 

<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->







please give me any idea to solve this error
 
thanks,
swathi
Posted 13-Jun-12 0:52am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hai,
 
Please go C:\WINDOWS\assembly and check the System.Web.Extensions Assembly Name ,Version,public Key token exists.
 
If any of these changed then you need to install latest framework.The version Framework 4.0 is not installed in your local system.
 
Hope this helps...
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Try these 2 steps (replace Framework with Framework64 if it's needed):
 
Go to:
 
C:\Windows\Microsoft.NET\Framework\v2.0.50727\ or the installed version
and then run:
 
aspnet_regiis -i
Go to: C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation
 
and then run:
 
ServiceModelReg.exe -i
 
I hope this helps.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 277
1 Maciej Los 210
2 BillWoodruff 195
3 DamithSL 195
4 Richard MacCutchan 178
0 OriginalGriff 5,130
1 DamithSL 4,197
2 Maciej Los 3,670
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,821


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 14 Jun 2012
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