Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using System.Web

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
This is the beginning of my page:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Data.SqlClient;
using System.Web;

namespace testcs
{
/.../
}

For some reason when I try to build I get the following error on the using System.Web line:
"The type of namespace name 'Web' does not exist in the class or namespace 'System'(are you missing an assembly reference?)"

I'm new to C#/.net, so hopefully I'm just missing something. I looked on microsoft's help...and it seems that System.Web should exist...

Any help?
 
Hi TEgut.
You might want to try adding a reference to System.Web.dll. I can't speak to how this would be done from the command line but in Visual Studio .NET it's done from the Project menu.

Cheers,
SlantyOD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top