Page 1 of 1

Error trying to open with a different connection string.

Posted: Thu 15 Mar 2012 03:12
by phburke
This works in Visual Studio 2008, but not in Visual Studio 2010. Any suggestions?

using (var data = new FreeswitchNamespace.FreeswitchEntities("User Id=username;Password=pwd;Host=192.168.0.74;Database=freeswitch;Persist Security Info=True;"))
{
MessageBox.Show("got here");
}


I get the following exception. "Keyword not supported: 'user id'."

Posted: Mon 19 Mar 2012 15:32
by StanislavK
Could you please specify the ORM (e.g., LinqConnect or Entity Framework) you are working with?

For example, this issue may occur if you are trying to create an Entity Framework object context, since the EntityConnection connection string format differs from the format of provider's connection string. For the detailed information about creating a proper EntityConnection connection string, please refer to the following topics:
http://msdn.microsoft.com/en-us/library/cc716756.aspx
http://msdn.microsoft.com/en-us/library/bb738533.aspx