Namespace does not exist in VS-generated code

  • Thread starter Thread starter John Spiegel
  • Start date Start date
J

John Spiegel

Hi all,

I used wsdl.exe to create a proxy class that I'm now trying to access from a
page. When building the project, the using command in the codebehind:

using System.Web.Services.Protocols;

is indicating:

"The type or namespace 'Services' does not exist in the class or namespace
System.Web."

I'm using VS 2003 (7.1.3088) and .NET framework 1.1 (1.1.4322) Could it
somehow be related to an old version of the framework?

TIA,

John
 
The System.Web.Services name space is a separate .dll that expands on the
System.Web namespace.

Check your references folder. I suspect it only contains a reference to
System.Web.

If this is the case then you need to add the reference to
System.Web.Services.

The dll you need to add is: System.Web.Services.dll

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
And given the manual nature of using wsdl.exe and linking it all up, that
makes a lot of sense!

Thanks, again!

- John
 
Back
Top