Ich weiß, meine Frage ist grundlegend. Aber ich weiß nicht, wie ich Informationen konfigurieren sollte web.config
Informationen!Verbindung zur SQL Server-Datenbank in ASP
Mein SQL-Server ist mit Windows-Authentifizierung verbunden. Ich verwende diese config:
<add key="DBServer" value="mssql" />
<add key="DBSource" value="localhost" />
<add key="DBName" value="TestDB" />
<add key="LoginName" value="KARIM-PC\Karim" />
<add key="LoginPWD" value="" />
aber ich bekomme diese Fehlermeldung:
{"This operation requires a connection to the 'master' database. Unable to create a connection to the 'master' database because the original database connection has been opened and credentials have been removed from the connection string. Supply an unopened connection."}
Exception: Thrown: "Login failed for user 'KARIM-PC\Karim'." (System.Data.SqlClient.SqlException) A System.Data.SqlClient.SqlException was thrown: "Login failed for user 'KARIM-PC\Karim'."
Vielen Dank. Ich habe diesen Fehler: '{" Wert kann nicht Null sein. \ R \ nParametername: Benutzer-ID "}' –
Wo haben Sie "Benutzer-ID" in Web-Konfiguration hinzugefügt? –
Die 'web.config' ist hier: [link] (https://github.com/wells-z/CPCMVCMSSQL/blob/master/CoolPrivilegeControl/Web.config) –