Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Defining A WCF Service In a N-Tier Project

Status
Not open for further replies.

mbde

Programmer
Mar 14, 2005
55
US
I have a WCF service that works well by itself. It contains two methods and one business object, EdiResponse

So I put the Service Refence into the Entities Project.
Adding a reference to Entities.EdiService to the Business and the Data layers.

Then Business calles the method does some examination and passes a List<EdiResponse> to the Data layer to store.

Adding the Using statement in the layers everything complies fine but when the code runs I get the error

Code:
Could not find default endpoint element that references contract 'EdiService.IEdiService' 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.

Now I copied the app.config file that was created when the reference added to the Bin directory. I am still getting the error.

Any thoughs of how I can get other dlls to recognize the configuration file?
 
Never mind I added the contents of the app.config to web.config... works like a charm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top