Click here to Skip to main content
13,191,642 members (70,049 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Does anyone succeed in calling wcf service using script task in ssis?
I am getting error

Could not find default endpoint element that references contract 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.
Posted 30-Jan-13 1:08am
Updated 30-Jan-13 2:07am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

As mentioned here[^]:
"This error can arise if you are calling the service in a class library and calling the class library from another project."

In this case you will need to include the WS configuration settings into the main projects app.config if its a winapp or web.config if its a web app. This is the way to go even with PRISM and WPF/Silverlight.

Solution suggested: Use contract="IMySOAPWebService" in your config file.

Another thread[^] discussing the same.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Message msg = new Message();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171017.2 | Last Updated 2 Jul 2014
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100