Azure Website Exception: Format of the initialization string does not conform to specification starting at index 0

前端 未结 3 1390
执笔经年
执笔经年 2021-01-12 04:53

I have an Azure Website that I use to host my MVC + Entity Framework project. When I run the site locally using the same connection to my SQL Azure database, everything wor

3条回答
  •  攒了一身酷
    2021-01-12 05:43

    You should FTP into your Azure website and also check your connection string there in your web.config.

    When you publish your site your web.config gets transformed/modified by Azure so it can be that this process messes up something with your connection string which leads to this error. For example if you setup your connection string through the web portal maybe during some copy/pasting the encoding is messed up, etc.

提交回复
热议问题