473,320 Members | 2,177 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,320 software developers and data experts.

Error on SOAP Call on only one machine: Could not find default endpoint element that references contract 'ServiceReference1.SLDSoap' in the ServiceModel client configuration section

Hello,
I am receiving this error when trying to instantiate a webservice component.
I have 2 development machines, both are XP sp2 with VS 2008 installed. On
one machine, the code works fine. On the other machine I get the error upon
instantiating the service client. I add the reference by choosing Add
Service Reference from the project menu, and pointing to the remote wsdl
file. I can't seem to find what the difference between the two systems is.

Thanks
Lance

The following is the code

Dim sld As ServiceReference1.SLDClient
sld = New ServiceReference1.SLDClient 'error happens here...

Error:
Could not find default endpoint element that references contract
'ServiceReference1.SLDSoap' in the ServiceModel client configuration
section. This might be because no configuration file was found for your
application, or because no endpoint element matching this contract could be
found in the client element.
--
Support Fairtax Legislation
www.fairtax.org

"A government big enough to give you everything you want, is strong enough
to take everything you have."
-Thomas Jefferson
Jun 27 '08 #1
3 4386
Hi Lance,

From your description, you encountered error when try instantiate a certain
webservice client you created in VS 2008 project, correct?

According to the error message and code snippet. It seems you're using a
project targetting .NET 3.5. By default, .NET 3.5/3.0 based project will
only provide "Add Service Reference"(not Add WebReference), and the
"Service Reference" is a proxy class used for consuming WCF service.

#Consuming a WCF service
http://geekswithblogs.net/MainaD/arc...04/119287.aspx

Though WCF client can also consume standard XML webservice, you can still
use webservice proxy(web reference) if your server-side service is still an
ASP.NET webservice(rather than WCF service). To generate webservice
proxy(add webReference) in VS 2008, you can refer to the following article:

#How to add web reference in VS 2008 Project
http://carlosfemmer.com/post/2008/01...in-VS-2008-Pro
ject.aspx

The error itself indicate the the WCF service client proxy doesn't have a
endpoint configuration in app.config file(by default the IDE should have
generated one endpoint for you). Anyway, you can first try using "Add
WebReference" instead to see whether it helps.

If there is anything unclear, welcoem to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Lance Wynn" <La********@community.nospam>
Subject: Error on SOAP Call on only one machine: Could not find default
endpoint element that references contract 'ServiceReference1.SLDSoap' in
the ServiceModel client configuration section
>Date: Tue, 15 Apr 2008 16:48:44 -0600
>
Hello,
I am receiving this error when trying to instantiate a webservice
component.
>I have 2 development machines, both are XP sp2 with VS 2008 installed. On
one machine, the code works fine. On the other machine I get the error
upon
>instantiating the service client. I add the reference by choosing Add
Service Reference from the project menu, and pointing to the remote wsdl
file. I can't seem to find what the difference between the two systems is.

Thanks
Lance

The following is the code

Dim sld As ServiceReference1.SLDClient
sld = New ServiceReference1.SLDClient 'error happens here...

Error:
Could not find default endpoint element that references contract
'ServiceReference1.SLDSoap' in the ServiceModel client configuration
section. This might be because no configuration file was found for your
application, or because no endpoint element matching this contract could
be
>found in the client element.
--
Support Fairtax Legislation
www.fairtax.org

"A government big enough to give you everything you want, is strong enough
to take everything you have."
-Thomas Jefferson
Jun 27 '08 #2
Thanks Steven,

I created the connection as a webservice, and it seems to be working. The
odd thing is that on a different machine, creating it as a Service Reference
works fine...
--
Support Fairtax Legislation
www.fairtax.org

"A government big enough to give you everything you want, is strong enough
to take everything you have."
-Thomas Jefferson

"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:SZ**************@TK2MSFTNGHUB02.phx.gbl...
Hi Lance,

From your description, you encountered error when try instantiate a
certain
webservice client you created in VS 2008 project, correct?

According to the error message and code snippet. It seems you're using a
project targetting .NET 3.5. By default, .NET 3.5/3.0 based project will
only provide "Add Service Reference"(not Add WebReference), and the
"Service Reference" is a proxy class used for consuming WCF service.

#Consuming a WCF service
http://geekswithblogs.net/MainaD/arc...04/119287.aspx

Though WCF client can also consume standard XML webservice, you can still
use webservice proxy(web reference) if your server-side service is still
an
ASP.NET webservice(rather than WCF service). To generate webservice
proxy(add webReference) in VS 2008, you can refer to the following
article:

#How to add web reference in VS 2008 Project
http://carlosfemmer.com/post/2008/01...in-VS-2008-Pro
ject.aspx

The error itself indicate the the WCF service client proxy doesn't have a
endpoint configuration in app.config file(by default the IDE should have
generated one endpoint for you). Anyway, you can first try using "Add
WebReference" instead to see whether it helps.

If there is anything unclear, welcoem to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>>From: "Lance Wynn" <La********@community.nospam>
Subject: Error on SOAP Call on only one machine: Could not find default
endpoint element that references contract 'ServiceReference1.SLDSoap' in
the ServiceModel client configuration section
>>Date: Tue, 15 Apr 2008 16:48:44 -0600
>>
Hello,
I am receiving this error when trying to instantiate a webservice
component.
>>I have 2 development machines, both are XP sp2 with VS 2008 installed. On
one machine, the code works fine. On the other machine I get the error
upon
>>instantiating the service client. I add the reference by choosing Add
Service Reference from the project menu, and pointing to the remote wsdl
file. I can't seem to find what the difference between the two systems
is.

Thanks
Lance

The following is the code

Dim sld As ServiceReference1.SLDClient
sld = New ServiceReference1.SLDClient 'error happens here...

Error:
Could not find default endpoint element that references contract
'ServiceReference1.SLDSoap' in the ServiceModel client configuration
section. This might be because no configuration file was found for your
application, or because no endpoint element matching this contract could
be
>>found in the client element.
--
Support Fairtax Legislation
www.fairtax.org

"A government big enough to give you everything you want, is strong enough
to take everything you have."
-Thomas Jefferson

Jun 27 '08 #3
Thanks for your reply Lance,

Glad that you've got the webreference working.

If you still have interests to figure out the service referenc issue. I
suggest you check the app.config which should contains the configuration of
the WCF service proxy. You can compare the two ones(one on the correct
machine and one on the problem machine) to find the difference.

if there is anything else you want to know, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Lance Wynn" <La********@community.nospam>
References: <u9**************@TK2MSFTNGP02.phx.gbl>
<SZ**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: Error on SOAP Call on only one machine: Could not find
default endpoint element that references contract
'ServiceReference1.SLDSoap' in the ServiceModel client configuration section
>Date: Wed, 16 Apr 2008 07:30:03 -0600
>
Thanks Steven,

I created the connection as a webservice, and it seems to be working. The
odd thing is that on a different machine, creating it as a Service
Reference
>works fine...
--
Support Fairtax Legislation
www.fairtax.org

"A government big enough to give you everything you want, is strong enough
to take everything you have."
-Thomas Jefferson

"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:SZ**************@TK2MSFTNGHUB02.phx.gbl...
>Hi Lance,

From your description, you encountered error when try instantiate a
certain
webservice client you created in VS 2008 project, correct?

According to the error message and code snippet. It seems you're using a
project targetting .NET 3.5. By default, .NET 3.5/3.0 based project will
only provide "Add Service Reference"(not Add WebReference), and the
"Service Reference" is a proxy class used for consuming WCF service.

#Consuming a WCF service
http://geekswithblogs.net/MainaD/arc...04/119287.aspx

Though WCF client can also consume standard XML webservice, you can still
use webservice proxy(web reference) if your server-side service is still
an
ASP.NET webservice(rather than WCF service). To generate webservice
proxy(add webReference) in VS 2008, you can refer to the following
article:

#How to add web reference in VS 2008 Project
http://carlosfemmer.com/post/2008/01...in-VS-2008-Pro
>ject.aspx

The error itself indicate the the WCF service client proxy doesn't have a
endpoint configuration in app.config file(by default the IDE should have
generated one endpoint for you). Anyway, you can first try using "Add
WebReference" instead to see whether it helps.

If there is anything unclear, welcoem to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you.
Please
>feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
>ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
>where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each
follow
>up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
================================================= =
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>>>From: "Lance Wynn" <La********@community.nospam>
Subject: Error on SOAP Call on only one machine: Could not find default
endpoint element that references contract 'ServiceReference1.SLDSoap' in
the ServiceModel client configuration section
>>>Date: Tue, 15 Apr 2008 16:48:44 -0600
>>>
Hello,
I am receiving this error when trying to instantiate a webservice
component.
>>>I have 2 development machines, both are XP sp2 with VS 2008 installed.
On
>>>one machine, the code works fine. On the other machine I get the error
upon
>>>instantiating the service client. I add the reference by choosing Add
Service Reference from the project menu, and pointing to the remote wsdl
file. I can't seem to find what the difference between the two systems
is.

Thanks
Lance

The following is the code

Dim sld As ServiceReference1.SLDClient
sld = New ServiceReference1.SLDClient 'error happens here...

Error:
Could not find default endpoint element that references contract
'ServiceReference1.SLDSoap' in the ServiceModel client configuration
section. This might be because no configuration file was found for your
application, or because no endpoint element matching this contract could
be
>>>found in the client element.
--
Support Fairtax Legislation
www.fairtax.org

"A government big enough to give you everything you want, is strong
enough
>>>to take everything you have."
-Thomas Jefferson


Jun 27 '08 #4

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

Similar topics

7
by: | last post by:
Hi all, I have a simple .aspx page running on net 2.0 that is trying to do a http post to a remote server. Here is the code Private Function ProcessRequests(ByVal strbody As String) As String...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
13
by: ScottM | last post by:
I have run into a problem generating the class file via the WSDL utility. I have a WSDL file that was generated by XMLSpy and is able to be read by the Java code utility, but I get the following...
0
by: KIM | last post by:
Hi! We are trying to realize message-based security with WCF June CTP. We get the messages encrypted but not signed (see SOAP-message below)! We also tried the "Message Security Sample" from the...
2
by: Ronald S. Cook | last post by:
Hi, Some users on our domain can run our WCF application no problem. Some get an unhandled exception error re: SOAP security negotiation. I'm wanting the service to not be secure.. I just want...
0
by: =?Utf-8?B?QW5keSBZdQ==?= | last post by:
Hi, I'm trying to return exceptions from a WCF Service using FaultExceptions. I got the service compiled and running. But I get an error while adding a service reference to it. The error reads: "...
5
by: Max2006 | last post by:
Hi, I am trying to limit my wcf service endpoint to response to only given windows user or group. How can I do that? Is there any way to configure that in the .config file? Thank you, Max
0
by: crm | last post by:
Hi, I'm implementing my first WCF application. Everything works fine if I host it in the development web server, but when I add the virtual directory to IIS I start getting the following error: ...
0
by: =?Utf-8?B?a2F1c2hhcw==?= | last post by:
Apologies for cross posting to couple of WCF related forums, but I am frantically trying to find a solution to this WCF Mex endpoint problem described below: I am getting this weird error when...
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...
1
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: 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
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.