Guest User

Guest User

  • Tech Writer
  • 2.1k
  • 472.4k

How to config production db cluster allow remote access in asp.net mvc

Mar 7 2024 10:35 AM

Hi Team

I want to see if it possible to on web.config, does it allow if i have production db cluser the connection string so i dont get this error often below.

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified). 

<connectionStrings>
		<!-- Connection string for your production SQL Server database using Windows Authentication -->
		<add name="ProductionDBConnectionString" connectionString="Data Source=R****\Uwana;Initial Catalog=***;Integrated Security=True;" providerName="System.Data.SqlClient" />
	</connectionStrings>

Answers (2)