Where can I find the assembly System.Web.Extensions dll?
EDIT:
The info below is only applicable to VS2008 and the 3.5 framework. VS2010 has a new registry location. Further details can be found on MSDN: How to Add or Remove References in Visual Studio.
ORIGINAL
It should be listed in the .NET tab of the Add Reference dialog. Assemblies that appear there have paths in registry keys under:
HKLM\Software\Microsoft\.NETFramework\AssemblyFolders\
I have a key there named Microsoft .NET Framework 3.5 Reference Assemblies with a string value of:
C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\
Navigating there I can see the actual System.Web.Extensions dll.
EDIT:
I found my .NET 4.0 version in:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.Extensions.dll
I'm running Win 7 64 bit, so if you're on a 32 bit OS drop the (x86).
can not add System.Web.Extensions Assembly as reference
Do these step by step
- Right Click you project Select Properties
- Change your Target Framework to ".NET Framework 4"
- Do whatever you need to do to save the changes and close the preferences tab
- Right click on the References item in your Solution Explorer
- Choose Add Reference...
- In the .NET tab, scroll down to System.Web.Extensions and add it.
How to add `System.Web.Extensions` assembly to .net core project in vscode
System.Web.Extensions
is part of full .net framework . If you want to serialize and deserialize object,You can use Newtonsoft.Json
,
#using Newtonsoft.Json
....
JsonConvert.DeserializeObject(json);
Update
Just get package name and version number from NuGet and add to .csproj then save. You will be prompted to run restore that will import new packages.
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
</ItemGroup>
Can't add System.Web.Extensions.dll to References
You're targeting the Client Profile, which doesn't include the Web assemblies. Go into Project > Properties > Application and change Target Framework to ".NET Framework 4".
Also refer to this link. Its a good read
http://social.msdn.microsoft.com/Forums/en/csharplanguage/thread/0710131c-2b7a-4531-bc34-7cceab44d93e
Related Topics
How to Get the Correct Ip from Http_X_Forwarded_For If It Contains Multiple Ip Addresses
C# - How to Iterate Through Classes Fields and Set Properties
Why Does Environment.Exit() Not Terminate the Program Any More
What's the Role of Gethashcode in the Iequalitycomparer<T> in .Net
Why Doesn't Mutex Get Released When Disposed
Calculate a Md5 Hash from a String
Dependency Injection - New Instance Required in Several of a Classes Methods
Calling Async Methods from Non-Async Code
How to Make an Installer for My C# Application
How to Add a Certificate to Webclient (C#)