初始化字符串的格式不符合规范,从azure的索引0开始 [英] Format of the initialization string does not conform to specification starting at index 0 on azure

查看:89
本文介绍了初始化字符串的格式不符合规范,从azure的索引0开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题已经解决了几个小时,这是我的连接字符串:

Have been with thi problem for hours, this is my connectionstring:

<connectionStrings>
   <add name="OL4RENTDb" 
     connectionString="Server=v812xrqz2w.database.windows.net;Database=ol4rentDB;User ID=AdminOL4RENT@v812xrqz2w;Password=Grupo501TSI;Trusted_Connection=False;Encrypt=True;MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" />
 </connectionStrings>

错误:

[ArgumentException: Format of the initialization string does not conform to specification starting at index 0.]
   System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue) +5314705
   System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +124
   System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +95
   System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +59

您在那里看到任何问题吗?

Do you see any problem there?

我正在部署到天蓝色。.

I am deploying to azure..

推荐答案

我遇到了相同的错误,并通过FTP到我的Azure网站和edi进行了修复Web.Config。我注意到已经添加了新的连接字符串条目。我删除了它以保留PC上的所有内容,然后一切正常。因此,如果在部署到Azure时遇到此错误,请检查连接字符串。

I had the same error and I fix it by going via FTP to my Azure Website and edited the Web.Config. I noticed that a new connection string entry has been added. I removed it to keep those that I had on my PC and everything worked well. So, if you have this error when you deploy to Azure, check your connections strings.

这篇关于初始化字符串的格式不符合规范,从azure的索引0开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆