When building custom applications that talk to Microsoft Dynamics CRM 2011 via the SDK, you may have encountered this error:
The provided uri did not return any Service Endpoints!
To fix this, simply recycle the CRMAppPool and run your custom application again.
It should now connect to Microsoft Dynamics CRM 2011 provided your credentials are correct.
Original Source: Roshan Mehta