Problem with proxy class

  • Thread starter Thread starter John Knoop
  • Start date Start date
J

John Knoop

Hi

I've created a proxyclass from a .wsdl file. But the class uses namespaces
that I don't have on my machine, such as
System.Web.Services.Protocols.SoapHttpClientProtocol. It actually tries to
inherit that class. But I don't have IIS on my machine, so I don't have any
of the system.web namespaces.

Anyone?
 
I've created a proxyclass from a .wsdl file. But the class uses namespaces
that I don't have on my machine, such as
System.Web.Services.Protocols.SoapHttpClientProtocol. It actually tries to
inherit that class. But I don't have IIS on my machine, so I don't have any
of the system.web namespaces.

Hi there,

The system.web namespaces aren't related to IIS, no standard Windows
components use the .NET Framework. The System.Web namespace should be on
your system if you have the .NET Framework installed, try making a reference
to the "System.Web.Dll", press

Project > Add Reference

Select "System.Web.Dll" from the list and press OK.

As for what your actually trying to do with the ".wsdl" file, I have no
idea, so I can't ask anything related to that, only the missing namespace
reference.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
/\/\/\/\/\/\/\/\/\/\/
It seems you are not enabling Option Strict. Enable it in the project
properties and the compiler might find the error for you. Jobs a good'n!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
/\/\/\/\/\/\/\/\/\/\/
 
Considering System.Web is just part of theCLR you should have it... it isn't
necessarily direcly tied to IIS.
 
Ok, thanks.

I didn't know I had to "add reference" like in VB6. I thougt it was
sufficient to just write an imports statement.

/john
 
Back
Top