our client application that uses a web service on our back end:
System.Configur ation.Configura tionException: Missing required Web
Services section of the Web.config file.
at
System.Web.Serv ices.Configurat ion.WebServices Configuration.g et_Current()
at System.Web.Serv ices.Protocols. SoapClientType. .ctor(Type type)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol..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.Serv ices.Protocols. SoapHttpClientP rotocol
>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="HttpSoap1 2"/>
</protocols>
</webServices>
Any ideas or suggestions?
Thanks,
Ken