Reputation: 2801
Here is how my 2 projects are
But I'm receiving System.ServiceModel.EndpointNotFoundException. In my Test Project I have added one app.config file and added endpoint as available in my Serviceclass library project app.config.
Could anyone have encounter same problem before. Please help.
Thanks, Pritam
Upvotes: 1
Views: 2348
Reputation: 754488
Is your service class library hosted in IIS? If so, you need to add the relevant info (everything in <system.serviceModel>
) to your web.config.
Are you self-hosting the WCF service? Then the host application needs to have that info in its app.config
.
You cannot just put that info into the service class library's app.config
- that file will not be used by .NET - you need to put the info into the host application's web.config
(for IIS) or app.config
(if you self-host).
Upvotes: 1
Reputation: 7025
Not sure but check this: - Maybe you have the endpoint twice in your app.config - App.config that should have endpoint configuration is the one in the testproject
Upvotes: 0