473,322 Members | 1,232 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Missing required Web services section of Web.config when determining Soap Protocol version

ken
We have a user that has reported the following error when starting up
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) and
in 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

Nov 7 '06 #1
2 7566
<ke*@soundflavor.comwrote in message
news:11*********************@m7g2000cwm.googlegrou ps.com...
We have a user that has reported the following error when starting up
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) and
in 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:
Is your client application a web application? If not, it won't be using
web.config.

If the application is named C:\program files\something\foo.exe, then you
need a C:\program files\something\foo.exe.config.

John
Nov 8 '06 #2
Did you ever find a work-around for this? I'm having the exact same
problem. What did you add to your app.config in order to mimic the
presence of a web.config with a services section? I've tried just
cutting and pasting the "system.web" section from the web.config into
the app.config but that didn't work. I must be missing something but I
don't know what.

John Saunders wrote:
<ke*@soundflavor.comwrote in message
news:11*********************@m7g2000cwm.googlegrou ps.com...
We have a user that has reported the following error when starting up
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) and
in 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:

Is your client application a web application? If not, it won't be using
web.config.

If the application is named C:\program files\something\foo.exe, then you
need a C:\program files\something\foo.exe.config.

John
Jan 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: foneman | last post by:
I wrote and compiled a dll without error. When running the app that calls my dll, I get "Missing required export functions at <filepath to my dll> The dll was created with Visual C++ .Net...
3
by: Gery D. Dorazio | last post by:
Hi, I am trying to create my own custom logging mechanism using an IHttpModule. To do this I gather various information about the request and response using the HttpRequest and HttpResponse...
0
by: pberna | last post by:
Dear all, Do anyone know some example of Client and Server version of a Chat program based on SOAP protocol that can jump a company firewall ? Thank you Paolo
4
by: Kaush | last post by:
Hi all, I am creating a webservice to accept SOAP messages, parse the message and send a SOAP response back to the client accessing my web service using WSE-2 in ASP.NET. I am creating a class...
2
by: Alan Silver | last post by:
Hello, I'm getting an odd validation error from VWD. As I understand it, an opening ASP.NET for tag is supposed to look like... <form runat="server"> with an optional ID attribute. VWD...
3
by: CindyRob | last post by:
I am using .NET framework 1.1 SP1, .NET framework SDK 1.1 SP1, with hotfix 82202, Visual studio .NET 2003 with hotfix 823639. I have generated a proxy class using wsdl.exe from a schema that has an...
1
by: Grzegorz Smith | last post by:
Hi folks I must write webb application that will comunicate with delphi desktop application by SOAP protocol. Can you recommend any Python Soap Libary? I founded: SOAPpy and Zolera SOAP...
4
by: Joseph Geretz | last post by:
I'm trying to convert my DIME Web Service (WSE 2.0) to use MTOM (WSE 3.0). All the literature I'm reading specifies that I'll need to check both: Enable this project for Web Services Enhancements...
0
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.