dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

error:26 Error Locating Server/Instance Specified - sqlserver-server

This is a discussion on error:26 Error Locating Server/Instance Specified - sqlserver-server ; I am having trouble connecting to Sql Server 2005 Express from asp.net 2.0 app on Windows Server 2003. I am using Sql Server Authentication, and I tried the below article's suggestions a number of times. When I login to to ...


Home > Database Forum > Microsoft SQL Server > sqlserver-server > error:26 Error Locating Server/Instance Specified

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 02-01-2008, 07:20 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default error:26 Error Locating Server/Instance Specified

I am having trouble connecting to Sql Server 2005 Express from asp.net
2.0 app on Windows Server 2003. I am using Sql Server Authentication,
and I tried the below article's suggestions a number of times. When I
login to to the machine, and login, I am able to get authenticated.
However, when I debug my application, I get the error below. Do I have
to give the sql server authenticaed account I created certain
permissions? Whould I set a port, and use the ipaddress rather than
the server name? Any suggestions would be greatly appreciated.

http://support.microsoft.com/kb/914277

My Error:

An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)

My Connection String:
value="server=MyServerName;uid=MyUserName;pwd=MyPasswd;da tabase=MyDB"/>
Reply With Quote
  #2  
Old 02-01-2008, 07:26 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: error:26 Error Locating Server/Instance Specified

On Feb 1, 5:20*pm, carlos wrote:
> I am having trouble connecting to Sql Server 2005 Express from asp.net
> 2.0 app on Windows Server 2003. I am using Sql Server Authentication,
> and I tried the below article's suggestions a number of times. When I
> login to to the machine, and login, I am able to get authenticated.
> However, when I debug my application, I get the error below. Do I have
> to give the sql server authenticaed account I created certain
> permissions? Whould I set a port, and use the ipaddress rather than
> the server name? Any suggestions would be greatly appreciated.
>
> http://support.microsoft.com/kb/914277
>
> My Error:
>
> An error has occurred while establishing a connection to the server.
> When connecting to SQL Server 2005, this failure may be caused by the
> fact that under the default settings SQL Server does not allow remote
> connections. (provider: SQL Network Interfaces, error: 26 - Error
> Locating Server/Instance Specified)
>
> My Connection String:
> * > value="server=MyServerName;uid=MyUserName;pwd=MyPasswd;da tabase=MyDB"/>


Update:

I changed the connection string to use the ipaddress, and a port that
I set in the TCPIP settings, and now i'm getting the below message:

An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: TCP Provider, error: 0 - No connection could
be made because the target machine actively refused it.)

I'm thinking this may be a permission problem??

Reply With Quote
  #3  
Old 02-03-2008, 04:48 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: error:26 Error Locating Server/Instance Specified

Hi Carlos,

By default, SQL Server 2005 Express, Evaluation, and Developer editions
allow local client connections only. Enterprise, Standard, and Workgroup
editions also listen for remote client connections over TCP/IP.

you ned to enable Remote Connections option using

Surface Area Configuration for Services and Connections (Remote Connections)
- Database Engine

You must restart the Database Engine instance's service to apply changes.

Regards,
Amol R. Lembhe

"carlos" wrote:

> On Feb 1, 5:20 pm, carlos wrote:
> > I am having trouble connecting to Sql Server 2005 Express from asp.net
> > 2.0 app on Windows Server 2003. I am using Sql Server Authentication,
> > and I tried the below article's suggestions a number of times. When I
> > login to to the machine, and login, I am able to get authenticated.
> > However, when I debug my application, I get the error below. Do I have
> > to give the sql server authenticaed account I created certain
> > permissions? Whould I set a port, and use the ipaddress rather than
> > the server name? Any suggestions would be greatly appreciated.
> >
> > http://support.microsoft.com/kb/914277
> >
> > My Error:
> >
> > An error has occurred while establishing a connection to the server.
> > When connecting to SQL Server 2005, this failure may be caused by the
> > fact that under the default settings SQL Server does not allow remote
> > connections. (provider: SQL Network Interfaces, error: 26 - Error
> > Locating Server/Instance Specified)
> >
> > My Connection String:
> > > > value="server=MyServerName;uid=MyUserName;pwd=MyPasswd;da tabase=MyDB"/>

>
> Update:
>
> I changed the connection string to use the ipaddress, and a port that
> I set in the TCPIP settings, and now i'm getting the below message:
>
> An error has occurred while establishing a connection to the server.
> When connecting to SQL Server 2005, this failure may be caused by the
> fact that under the default settings SQL Server does not allow remote
> connections. (provider: TCP Provider, error: 0 - No connection could
> be made because the target machine actively refused it.)
>
> I'm thinking this may be a permission problem??
>
>

Reply With Quote
  #4  
Old 05-27-2008, 09:08 AM
Database Newbie
 
Join Date: May 2008
Posts: 1
v_b_3003 is on a distinguished road
Smile Re: error:26 Error Locating Server/Instance Specified

hiii,can anybody solve this?

I am having trouble connecting to Sql Server 2005 Express from asp.net
2.0 app on Windows Server 2003. I am using Sql Server Authentication,
and I tried the below article's suggestions a number of times. When I
> > login to to the machine, and login, I am able to get authenticated.
> > However, when I debug my application, I get the error below

An error has occurred while establishing a connection to the server.
> > When connecting to SQL Server 2005, this failure may be caused by the
> > fact that under the default settings SQL Server does not allow remote
> > connections. (provider: SQL Network Interfaces, error: 26 - Error
> > Locating Server/Instance Specified)


i did follg changes also but still the error is thr

Surface Area Configuration for Services and Connections (Remote Connections)
- Database Engine

restarted the Database Engine instance's service to apply changes.


plz plz help asap as i m trying 2 solve this from last 1 week
thanks
Reply With Quote
  #5  
Old 03-12-2009, 11:38 PM
Database Newbie
 
Join Date: Mar 2009
Posts: 2
bala4901 is on a distinguished road
Default Re: error:26 Error Locating Server/Instance Specified

You can look to this post:
http://fellowdeveloper.blogspot.com/...-26-error.html

Below are steps may try to help:
1) Make sure your server name is correct, e.g., no typo on the name.
2) Make sure your instance name is correct and there is actually such an instance on your target machine. [Update: Some application converts \\ to \. If you are not sure about your application, please try both Server\Instance and Server\\Instance in your connection string]
3) Make sure the server machine is reachable, e.g, DNS can be resolve correctly, you are able to ping the server (not always true).
4) Make sure SQL Browser service is running on the server.
5) If firewall is enabled on the server, you need to put sqlbrowser.exe and/or UDP port 1434 into exception.
__________________
Best Regard,
FellowDeveloper
--------------------
Http://www.fellowdeveloper.blogspot.com
Reply With Quote
  #6  
Old 12-19-2009, 06:03 AM
Database Newbie
 
Join Date: Jul 2009
Posts: 14
shijobaby is on a distinguished road
Default Re: error:26 Error Locating Server/Instance Specified

http://sqlerrormessages.blogspot.com...-or-error.html
Reply With Quote
Reply

Thread Tools
Display Modes


LinkBacks (?)

LinkBack to this Thread: http://dbaspot.com/forums/sqlserver-server/367498-error-26-error-locating-server-instance-specified.html

Posted By For Type Date
SQL Server Error Message with ASP.NET Application - ASP.NET Forums This thread Refback 06-01-2009 02:49 AM
A network-related or instance-specific error occurred while establishing a connection to SQL Server. - ASP.NET Forums This thread Refback 04-29-2009 01:12 AM
A network-related or instance-specific error occurred while establishing a connection to SQL Server. - ASP.NET Forums This thread Refback 04-26-2009 02:12 PM
SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified - ASP.NET Forums This thread Refback 03-01-2009 11:53 AM
Server Error in '/Ace' Application - ASP.NET Forums This thread Refback 02-28-2009 07:41 AM
Network related or Instance specific error - ASP.NET Forums This thread Refback 01-31-2009 11:06 AM
Database error - ASP.NET Forums This thread Refback 01-28-2009 06:14 PM
System.Data.SqlClient.SqlException - ASP.NET Forums This thread Refback 01-19-2009 03:20 PM
Network related or Instance specific error - ASP.NET Forums This thread Refback 01-16-2009 10:13 PM
ASPNETDB.mdf not working - ASP.NET Forums This thread Refback 01-14-2009 02:24 AM
Network related or Instance specific error - ASP.NET Forums This thread Refback 01-13-2009 08:52 PM
ASPNETDB.mdf not working - ASP.NET Forums This thread Refback 01-13-2009 08:04 AM
SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified - ASP.NET Forums This thread Refback 01-12-2009 05:25 AM
SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified - ASP.NET Forums This thread Refback 01-08-2009 12:43 AM
System.Data.SqlClient.SqlException - ASP.NET Forums This thread Refback 01-03-2009 01:27 AM
Error in Sql connection.Please help. - ASP.NET Forums This thread Refback 12-27-2008 06:15 PM
Seen this before? SQL Sever exception when trying to login. - ASP.NET Forums This thread Refback 12-17-2008 11:07 AM
Error in Sql connection.Please help. - ASP.NET Forums This thread Refback 12-15-2008 08:13 PM


All times are GMT -4. The time now is 03:48 AM.