Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Avr Pin
OriginalGriff4-Jan-10 22:15
mveOriginalGriff4-Jan-10 22:15 
AnswerRe: C# Avr Pin
Luc Pattyn5-Jan-10 2:32
sitebuilderLuc Pattyn5-Jan-10 2:32 
QuestionHelp Pin
levan omadze4-Jan-10 20:58
levan omadze4-Jan-10 20:58 
AnswerRe: Help Pin
0x3c04-Jan-10 21:11
0x3c04-Jan-10 21:11 
GeneralRe: Help Pin
levan omadze4-Jan-10 21:43
levan omadze4-Jan-10 21:43 
GeneralRe: Help Pin
0x3c05-Jan-10 5:58
0x3c05-Jan-10 5:58 
AnswerRe: Help Pin
Game-point4-Jan-10 21:58
Game-point4-Jan-10 21:58 
QuestionA network-related or instance-specific error occurred while establishing a connection to SQL Server Pin
Tridip Bhattacharjee4-Jan-10 20:34
professionalTridip Bhattacharjee4-Jan-10 20:34 
hi,
i am getting this error called "A network-related or instance-specific error occurred while establishing a connection to SQL Server".

i am using win service instead of web app. my service can connect to sql server in same machine but i found sometime i is giving exception for the above error.

my connection string is look like below one

Server=192.168.88.10\NNKPC;Network Library=DBMSSOCN;Initial Catalog=NNK_DB;User ID=TEST;Password=TEST

so where is wrong in my connection........i am very confuse that sometime not often i am gettting the error like below one and it is in detail.

Error 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)
Error System.Data.SqlClient.SqlException: 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)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)

please help me with some suggestion to get rid of this error.

thanks in advance

tbhattacharjee

AnswerRe: A network-related or instance-specific error occurred while establishing a connection to SQL Server Pin
Jimmanuel5-Jan-10 8:32
Jimmanuel5-Jan-10 8:32 
QuestionMSMQ Receiving messages Help!!! Pin
faheemnadeem4-Jan-10 19:32
faheemnadeem4-Jan-10 19:32 
AnswerRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel5-Jan-10 8:52
Jimmanuel5-Jan-10 8:52 
GeneralRe: MSMQ Receiving messages Help!!! Pin
faheemnadeem5-Jan-10 17:57
faheemnadeem5-Jan-10 17:57 
AnswerRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel6-Jan-10 1:09
Jimmanuel6-Jan-10 1:09 
GeneralRe: MSMQ Receiving messages Help!!! Pin
faheemnadeem6-Jan-10 4:05
faheemnadeem6-Jan-10 4:05 
GeneralRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel6-Jan-10 4:52
Jimmanuel6-Jan-10 4:52 
GeneralRe: MSMQ Receiving messages Help!!! Pin
faheemnadeem6-Jan-10 5:58
faheemnadeem6-Jan-10 5:58 
GeneralRe: MSMQ Receiving messages Help!!! Pin
Jimmanuel6-Jan-10 6:57
Jimmanuel6-Jan-10 6:57 
QuestionRead data from a SerialPort: cross-thread not true Pin
AlexB474-Jan-10 18:29
AlexB474-Jan-10 18:29 
AnswerMessage Closed Pin
4-Jan-10 21:50
stancrm4-Jan-10 21:50 
GeneralRe: Read data from a SerialPort: cross-thread not true Pin
AlexB475-Jan-10 1:46
AlexB475-Jan-10 1:46 
AnswerRe: Read data from a SerialPort: cross-thread not true Pin
Luc Pattyn5-Jan-10 2:36
sitebuilderLuc Pattyn5-Jan-10 2:36 
GeneralRe: Read data from a SerialPort: cross-thread not true Pin
AlexB475-Jan-10 3:44
AlexB475-Jan-10 3:44 
GeneralRe: Read data from a SerialPort: cross-thread not true Pin
Luc Pattyn5-Jan-10 3:52
sitebuilderLuc Pattyn5-Jan-10 3:52 
Questionminimizing and maximizing Pin
ummu 24-Jan-10 18:13
ummu 24-Jan-10 18:13 
AnswerMessage Closed Pin
4-Jan-10 21:48
stancrm4-Jan-10 21:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.