API projemi Docker'a taşıdım. Endpoint'e istek gidince SQL hatası alıyorum.
Hata:
Microsoft. Data. SqlClient. SqlException (0x80131904): 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.
Proje içerisinde connectionstring doğru yazılmıştır. SQL server açıktır. dB localde çalışacaktır bu yüzden docker üzerinde dB ile alakalı bir konfigürasyon yapmadım. Yardımcı olabilecek var mı?
Hata:
Microsoft. Data. SqlClient. SqlException (0x80131904): 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.
Proje içerisinde connectionstring doğru yazılmıştır. SQL server açıktır. dB localde çalışacaktır bu yüzden docker üzerinde dB ile alakalı bir konfigürasyon yapmadım. Yardımcı olabilecek var mı?