I have a site that uses Entity Framework DB first and I can run it on my local computer (dev computer) just fine. I have the edmx file and everything.
Today I deployed the site to go daddy and created a new DB using MSSQL. Now when the site tries to access the database I'm getting an error saying : The connection string 'PCsTranformedEntities' in the application's configuration file does not contain the required providerName attribute
At this point I'm lost. The provider name is not a valid thing inside the connection string and I clearly have it as part of the connection. Here is the entire thing from my web config (of course without my login info)
<add name="PCsTranformedEntities" connectionString="metadata=res://*/SiteModel.csdl|res://*/SiteModel.ssdl|res://*/SiteModel.msl;provider=System.Data.SqlClient;provider connection string="data source=******;initial catalog=PCsTransformed;persist security info=True;user id=j***;password=***;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
I've looked all over google:
Entity Framework: "ProviderName" in connection string required- all of the sudden?
http://www.sqlteam.com/forums/topic.asp?topic_id=179111
and a whole lot more but they seem to be pointing to what I already have. I have the provider name and this is the string created by Entity Frameowrk when I created the model from the DB.
I can access the DB from sql server 2012 just fine and even use my site locally.
So what am I missing here? Why would it run fine on my local computer but throw an error when it's live?