hi,

Code:
using System.Web.Script.Serialization;

namespace Server.WebServices
{
    public abstract class Handler
    {
        public static JavaScriptSerializer m_JavascriptSerializer = new JavaScriptSerializer();
        public static System.Text.ASCIIEncoding m_Encoding = new System.Text.ASCIIEncoding();

console error:

Code:
    CS0234: Line 6: The type or namespace name 'Script' does not exist in the na
mespace 'System.Web' (are you missing an assembly reference?)
    CS0246: Line 12: The type or namespace name 'JavaScriptSerializer' could not
 be found (are you missing a using directive or an assembly reference?)

How do I solve the problem ?
 
Should Script be Scripts?

The second error suggest you need something like

Code:
using Server.JavaScriptSerializer;

But it's hard to tell because the tiny bit of code you posted isn't entirely helpful.
 
Actually, you should be able to reference it, but you will need to make sure the assembly is in your directory, and/or add a reference to it in Assemblies.cfg.

System.Web.Script.Serialization.dll
or
System.Web.Script.dll
 
Back