关键字不受支持。参数名称:集成安全性

问题描述 投票:1回答:3

大家好,我正在尝试从App.config文件中检索连接时指定的错误。

我的App.Config如下

<add name="Conn" 
     connectionString="Data Source=SYSTEM19\SQLEXPRESS;Initial Catalog=Dora;Integrated Security=True" 
     providerName="System.Data.SqlClient" />`

在这行代码我得到提到的错误可以任何人帮助我

dataAdapter = new MySqlDataAdapter(selectCommand, MyConnectionString);
c# winforms app-config
3个回答
4
投票

MySQL Connection String

集成安全性不是MySQL连接字符串的有效关键字


1
投票

我有这个问题,因为我错过了Initial Catalog=位!


0
投票

我有这个问题因为安全这个词在下一行!

© www.soinside.com 2019 - 2024. All rights reserved.