473,797 Members | 3,183 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.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) 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="HttpSoap1 2"/>
</protocols>
</webServices>

Any ideas or suggestions?
Thanks,
Ken

Nov 7 '06 #1
2 7603
<ke*@soundflavo r.comwrote in message
news:11******** *************@m 7g2000cwm.googl egroups.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.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) 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*@soundflavo r.comwrote in message
news:11******** *************@m 7g2000cwm.googl egroups.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.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) 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
1728
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 (Version 7). I left the various files that were automatically created for my project (my_dll.cpp, my_dll.def, stdafx.cpp, stdafx.h) intact. I added a new .cpp file which contained my code and a header file that goes with it When I look at...
3
1970
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 objects. This is fairly straight forward except for determining the protocol version. The W3C Extended Log Format defines the field 'cs-version' and says that it is the protocol (HTTP, FTP) version used by the client and that if the request is say...
0
1550
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
6115
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 which derives from "SoapReceiver" class and do the processing here. To register this class by using the HTTP protocol, I am editing the "web.config" file. I am adding an "add" element to this config file as follows: <httpHandlers>
2
3677
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 gives me the following validation error...
3
5332
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 xsd:date element called XYZ_IncDate. <xsd:attribute name="XYZ_IncDate" type="xsd:date" use="required"> If I change the xsd:date element to be optional, then wsdl.exe generates two attributes for the date field in the proxy class:
1
1353
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 Infrastructure (ZSI). Any tip which is better to use? Thanks for any help Gregor
4
6461
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 and Enable Microsoft Web Services Enhancements SOAP Protocol Factory. On the WSE 3.0 configuration dialog. But the second box is disabled and unchecked. I spun up a brand new Web Services project and the checkbox is disabled.
0
5254
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 to install using the setup.exe. Title is "Cannot Start Application" and it says: ==================== Cannot download the application. The application is missing required files. Contact application vendor for assistance.
0
9537
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10209
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.