“A network-related or instance-specific error occurred while establishing a connection to SQL Server” Hatasının Çözümü
Merhaba arkadaşlar aşağıdaki sorun ile karşılaşanlar çözüm aslında gayet çok basit ve aşağıda sizlere bunları adım adım anlatıyor olacağım.
Hatanın Mesajı: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server)
Aşağıdaki adımları aşamalı olarak uygulayalım arkadaşlar;
* Başlat >> Tüm Programlar >> Microsoft SQL Server 2008 R2 (Versiyon sizlere göre değişiklik gösterebilir) >> Configuration Tools >> SQL Server Configuration Manager >> SQL Server (MSSQLSERVER) seçeneği state kısmında stopped olarak görünüyor ise onu sağ tıklayıp start‘ı tıklayarak başlatmamız gerekmektedir.
Bir başka sorun çözümünde görüşmek dileğiyle…
Sedat Demirdoğan
Çok teşekkür ederim hocam sorunum çözüldü. Elinize, emeğinize sağlık…