Cannot find System.Web.Script.Service namespace error after upgrading to Visual studio 2010

Posted by Gavin on Stack Overflow See other posts from Stack Overflow or by Gavin
Published on 2010-06-16T12:27:01Z Indexed on 2010/06/17 12:03 UTC
Read the original article Hit count: 860

I've just upgraded a VS 2008 project to VS 2010, converting the project but keeping the target as .NET 3.5 (SP1 is installed). My project worked without issue under VS 2008 on another machine.

I've added references to System.Web.Extensions.dll but I'm still getting the following errors from code in the App_Code folder:

1) Cannot find System.Web.Script.Service namespace 2) Type 'System.Web.Script.Services.ScriptService' is not defined.
3) Type 'System.Runtime.Serialization.Json.DataContractJsonSerializer' is not defined.

Anyone have any ideas what the problem might be as I'm pretty stumped? :(

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JSON