Cannot find JavaScriptSerializer in .Net 4.0

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Cannot find JavaScriptSerializer in .Net 4.0

Message par ForumBot »

Cannot find JavaScriptSerializer in .Net 4.0
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Cannot find JavaScriptSerializer in .Net 4.0

Message par ForumBot »

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:

- Create a new console application

- Change the target to .net 4 instead of Client Profile

- Add a reference to `System.Web.Extensions` (4.0)

- Have access to `JavaScriptSerializer` in Program.cs now :-)
Répondre

Revenir à « .NET & C# »