I am currently moving code from my app_code folder to a class library. I have tagged several methods with [System.Web.Script.Serialization.ScriptIgnore] attrib
[System.Web.Script.Serialization.ScriptIgnore]
You need to add a reference to System.Web.Extensions.dll in project for System.Web.Script.Serialization error.
System.Web.Extensions.dll