Last post Jan 14, 2016 12:57 PM by Adam-M
Jan 14, 2016 11:16 AM|Adam-M|LINK
I'm working in MVC and Azure and I made a change to a controller (not the web.config) and something must have happened to my connection string as I get the error:
Format of the initialization string does not conform to specification starting at index 0.
This is my connection string:
<add name="MyDbEntities" connectionString="metadata=res://*/Infrastructure.MyDbModel.csdl|res://*/Infrastructure.MyDbModel.ssdl|res://*/Infrastructure.MyDbModel.msl;provider=System.Data.SqlClient;provider connection string="data source=mydb.database.windows.net;initial catalog=Mydb;user id=myusername;password=mypassword;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
I know this error usually means a typo in the string or something but any ideas?
Thanks in advance
Jan 14, 2016 12:57 PM|Adam-M|LINK
Visual Studio 2015 automagically modified it and then when I got rid of it and went to publish again Visual Studio automagically re-generated it. Works now but I don't see what I did to cause the issue...it just does things for you.