our client application that uses a web service on our back end:
System.Configuration.ConfigurationException: Missing required Web
Services section of the Web.config file.
at
System.Web.Services.Configuration.WebServicesConfi guration.get_Current()
at System.Web.Services.Protocols.SoapClientType..ctor (Type type)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor()
This is in the call to instantiate the web services proxy on the client
side, which has a class declaration like the following (this is just to
show you it's the standard web service in a client):
public class MyWebService :
System.Web.Services.Protocols.SoapHttpClientProtoc ol
>From what I can tell, the user has .Net 2.0 (we compile with 1.0) andin 2.0, the client has the ability to choose to use Soap 1.1 or Soap
1.2 and it goes to the web.config file to figure this out. In the
web.config file that comes with .Net 2.0, there is no webservices
section and I think that is why we get this error.
I added a web services section to a copy of the web.config file and
placed it in our "program files" application startup directory, but
still get the missing required section error. What I added to the
web.config file is the following:
<webServices >
<protocols>
<remove name="HttpSoap12"/>
</protocols>
</webServices>
Any ideas or suggestions?
Thanks,
Ken