Click here to Skip to main content
15,886,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i Login my page i got this below error in catch exception.Please teach me how to resolve this

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)
Posted
Comments
Deepu S Nair 9-Feb-15 0:55am    
Check whether your SQL server instance name,username and password is correct or not
JOTHI KUMAR Member 10918227 9-Feb-15 0:56am    
kindly tell where to check because im new in sql
Deepu S Nair 9-Feb-15 0:58am    
show me your connectionstring
JOTHI KUMAR Member 10918227 9-Feb-15 0:59am    
in web config i gave this connecting string
<add name="DE" connectionstring="Data Source=PRAK\SQLDBEXPRESS;Initial Catalog=TESTMS;Persist Security Info=True;User ID=sa; Password=WBhd2ZRPSNLkIXKERwMB15JePIF+apJRCts69GbtLfE=" providername="DE">
JOTHI KUMAR Member 10918227 9-Feb-15 0:59am    
add name="DEM" connectionString="Data Source=PRA\SQLDBEXPRESS;Initial Catalog=TESTMS;Persist Security Info=True;User ID=sa; Password=WBhd2ZRPSNLkIXKERwMB15JePIF+apJRCts69GbtLfE=" providerName="DEM"

Hi ,
Check this
Go sql server configuration manager
find your instance name restart it .
Best regards
M.Mitwalli
 
Share this answer
 
Comments
JOTHI KUMAR Member 10918227 9-Feb-15 1:11am    
here i retart but no use then other two instance name should stopped
1)Sql Server(SQLDBEXPRESS) running
2) SQL Server Agent (STOPPED)
3)SQL SEVER Browser(STOPPED).
Mohamed Mitwalli 9-Feb-15 1:18am    
okay try this
go to sql server configuration manager
Enable name pipe , shared memory , Tcp/Ip
and restart your instance again and make sure your instance is working with account Network service
Mohamed Mitwalli 9-Feb-15 1:21am    
make sure your usrename and password is right , use sql management studio
JOTHI KUMAR Member 10918227 9-Feb-15 3:17am    
i enable and restart name instance but same error occur
server=servername;Initial Catalog=dbname;user id=usrnm;password=pwd

Try this
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900