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.

Comments

Popular posts from this blog

SQL Server 2005 - Showing ResultSet in a Single Row OR in a comma separated string format.

Cross Apply Incorrect syntax near '.'

Alert : can not set credentials for principal sa