site stats
A network-related or instance-specific error occurred while establishing… | Asp.NET
Anasayfa  E Ner(E)de ?  Hata Gönder
Loading

A network-related or instance-specific error occurred while establishing…

Yazar: Tarih: Ekim 27, 2009 · Yorum Yap  , Kategori: Asp.NET
Etiketler: , , ,

Asp.NET veritabanı bağlantısı sağlayamıyoruz.

Server Error in ‘/’ Application yazısını zaten görmeye alışkınız. Fazla uzatmayalım çünkü gerçekten basit, almamamız gereken bir hata. Muhtelemen Web.Config dosyasında yada veritabanına nerde bağlanıyorsak Server tarafını yanlış vermiş bulunmaktayız.

Hata Görüntüsü :

Server Error in ‘/’ Application.
——————————————————————————–

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: Shared Memory 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: Shared Memory Provider, error: 40 – Could not open a connection to SQL Server)

Hata Çözümü, veritabanı connection string’imizi düzenlemek.

Server= olarak verilen IP adresini yada Instance’ı hatalı vermiş olabiliriz.