Cannot find JavaScriptSerializer in .Net 4.0

Check if you included the .net 4 version of System.Web.Extensions – there’s a 3.5 version as well, but I don’t think that one works.

These steps work for me:

  1. Create a new console application
  2. Change the target to .net 4 instead of Client Profile
  3. Add a reference to System.Web.Extensions (4.0)
  4. Have access to JavaScriptSerializer in Program.cs now 🙂

Leave a Comment