How to Solve c# Error A Network-related or instance-specific error

Hello Welcome to Tutorial 4You Channel, In this Blog I will show you How to Solve this Error “A Network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not fond or was not accessible. Verify that the instance name is correct and the SQL Server is configured to allow remote connections. Then in Brackets Provider SQL Network Interfaces,  error : 26 – Error Locating Server/Instance Specified. So this error is Related to connection to database as its says and it gives us to two solution. first to verify that the instance name is correct and the SQL server is configured to allow remote connection.




so we already  connected to our SQL Server if you are unable to connect to your sql server I have already solve that error in this video 
(SQL Server Not Connecting | Network Related Error Solved ) .

So there is problem in our instance name which you will find in your project web config file .Scroll down till you find connection tag .


Then scroll right till you find the data source here you will add the name of your server. 


which you will find in your sql, connect, database engine this small window will open, the data source = "will be the server name" ; initial catalog = "Your Database Name"; and if you have window authentication in the dropdown then it will be integrated security=true;

Putting the right information of your database in your project web.config connection tag will solve this problem.

YOU CAN ALSO WATCH COMPLETE STEP BY STEP TUTORIAL OF THIS BLOG.


Post a Comment

0 Comments