Compiler Error Message: CS0234

kotsol

New Member
Licensed User
Longtime User
When I call the test1.aspx from the browser I get the following error:

Compiler Error Message: CS0234: The type or namespace name 'Script' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

Source Error:

Line 4: <%@ Import Namespace="System.Data.SqlClient" %>
Line 5: <%@ Import Namespace="System.IO" %>
Line 6: <%@ Import Namespace="System.Web.Script.Serialization" %>
Line 7:
Line 8: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: c:\inetpub\wwwroot\test1.aspx Line: 6

What might be the problem?
The environment I work is:
WINDOWS SERVER2008
IIS7
sqlexpress 2008
 
Top