Class library file Reference Web service error resolution-in the ServiceModel Client configuration section, the default endpoint element for the reference contract could not be found

Source: Internet
Author: User

Due to the need, the original application needs to be modified, because the original application is written under the console, now need to open to the web,

Think that the Biz Layer application code is the same, and do not want to add a reference under the Web, and repeat the code, so the original console under the service and the web under the service migrated to the Biz layer

So I added the references under the console, the references under the Web, all to the biz layer for reference.

But at the time of commissioning and running, the problem arose,

In the ServiceModel Client configuration section, the default endpoint element that references the contract "Putmccases.putmccasessoap" is not found. This could be because the application's configuration file was not found, or because the endpoint element that matched the contract was not found in the client element.

So I repeat the Add/Remove reference service in the Biz layer (the name differs from the console and the Web), try again, or not.

Finally, the solution was found:

This error message indicates that your caller's config file is not configured with the Pusmccases.putmccasessoap element ,

So decisive in the console of the App.config/servicemodel and Web.config/servicemodel join

The Pusmccases.putmccasessoap configuration file generated in Biz, Debug, run, succeeded.

Reference links, http://bbs.csdn.net/topics/370190211

Class library file Reference Web service error resolution-in the ServiceModel Client configuration section, the default endpoint element for the reference contract could not be found

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.