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