NET连接SQL数据库密码字符串包含&出现错误

来源:互联网 发布:手机电台广播软件 编辑:程序博客网 时间:2024/05/02 05:02

<appSettings>
<add key = "DBConnectString" value="Server=localhost; Integrated Security=True;Database=TestDB;Persist Security Info=True;User ID=webuser;Password=#$143214142asdask#$%* "/>
</appSettings>  

 

出现N次错误.一直没有找到解决办法.去除密码字符串中的&字符后。可以进行调试.解决办法正在寻找

测试一:将密码字符串中&替换成&amp;不可以.

 

原创粉丝点击