I've stuck on an issue where in my web service operation, i cannot establish a connection
I added an ADO.NET Entity Data Model item using Visual Studios 2010 and successfully imported the datamodel deployed on my sequel server.
public BusinessEntities.MADataModel MADataModel = new BusinessEntities.MADataModel();
Visual Studios generated the App.Config file, so I'm using the default constructor which uses the generated Connection String in this file.
In my Silverlight App, attaching the service to the process for debugging, when I push the button that calls the service which instantiates this data model, I get an error "The specified named connection is either not found in the configuration, not intened to be used with the EntityClient provider or not valid." for the method:
public MADataModelEntities() : Base("name=MADataModelEntities", "MADataModelEntities")
{
OnContextCreated();
}
according to Visual Studio's debugger.
Which is a completely autogenerated method using autogenerated parameters.
If i remove this, and say add a messagebox which outputs an input string from the UI, it displays it back. So I know that the service works.
Any idea why my data model is failing to establish a connection?
Thanks,
DJ Enriquez
This post has been edited by djenriquez: 29 June 2012 - 10:49 AM

New Topic/Question
Reply




MultiQuote






|