System.Data.SqlClient.SqlException: 'A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)'
Loading
System.Data.SqlClient.SqlException: 'A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)'
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishal YelveRank #178 · 13.6K reputationPosted Mar 14, 2024, 2:36 AM EDT
Check if your connection string has Trusted_Connection=True added.
also, check below Video
https://www.youtube.com/watch?v=J3ERo-M0BA4
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 14, 2024, 3:50 AM EDT
please check your connectionstring,
Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=True;"Tuhin PaulRank #7 · 71.9K reputationPosted Mar 14, 2024, 4:02 PM EDT
The error message
System.Data.SqlClient.SqlException: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)
indicates an issue during the login process after your application successfully connected to the SQL Server instance.
Tuhin PaulRank #7 · 71.9K reputationPosted Mar 14, 2024, 4:02 PM EDT
Tuhin PaulRank #7 · 71.9K reputationPosted Mar 14, 2024, 4:04 PM EDT
string connectionString = "Data Source=localhost\\SQLEXPRESS;Initial Catalog=MyDatabase;Integrated Security=True"; // Windows Authentication // OR string connectionString = "Data Source=192.168.1.100;Initial Catalog=MyDatabase;User ID=myUsername;Password=myPassword"; // SQL Server AuthenticationMudzakkir TohaRank #3,303 · 435 reputationPosted Mar 23, 2024, 5:33 PM EDT
That is already defined here with full of solutions.
https://stackoverflow.com/questions/34430550/a-connection-was-successfully-established-with-the-server-but-then-an-error-occ
Sometime, connection string must use:
Trusted_Connection=true;TrustServerCertificate=True
Or some specific configurations. You can try one of it until you success using get your current environment.
Jaimin ShethiyaRank #177 · 13.7K reputationPosted Apr 16, 2024, 3:20 AM EDT
Hello Naveen,
Try below conection string
"ConnectionString": "Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=True;Trusted_Connection=True;Connection Timeout=30;"Thanks