Posts

Showing posts from March, 2009

ado.net service end point exception

While using ADO.NET Service, we need to be very careful about setting initial Entity reference; otherwise the errors do not reveal cause. E.g. suppose you have not given proper entity reference, the error that it throws while viewing service in browser is Service 'NorthWindDataService' implements multiple ServiceContract types, and no endpoints are defined in the configuration file. WebServiceHost can set up default endpoints, but only if the service implements only a single ServiceContract. Either change the service to only implement a single ServiceContract, or else define endpoints for the service explicitly in the configuration file. So we may look to change settings for service endpoints. But the error is actually because of improper service reference. Technorati Tags: ado.net data service , entity data model