I am using Entity Framework in a MVC web application. My database is in azure and I am deploying my web app to azure. But when I deploy the application I receive the error below. I do NOT receive this error while debugging even though I am connecting to the same database.
Error
Keyword not supported: 'data source'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Keyword not supported: 'data source'.
Conn String
<add name="SoccerEntities"
connectionString="metadata=res://*/Models.MyModel.csdl
|res://*/Models.MyModel.ssdl
|res://*/Models.MyModel.msl;
provider=System.Data.SqlClient;
provider connection string='server=tcp:<servername>,1433;
initial catalog=MyDB;
persist security info=True;
user id=user;
password=pwd;
MultipleActiveResultSets=True;
App=EntityFramework'"
providerName="System.Data.EntityClient" />
.edmxand.designer.cs- I believe these used to include a hard-coded value of the connection string that might be used instead of the value in the web.config. Another issue might be with the encoding of characters within your username or password - that could be breaking the string. - Zhaph - Ben Duguid