Ther are two types of timeout exception that could be raised by SqlClient
operation invoced by the SqlCommand. It seems the SqlCommand in your
object. However, 500 seems too much. if the process needs that much time to
"Rick" <rfemmer@newsgroups.nospam> wrote in message
news:uxx1NanGIHA.1164@TK2MSFTNGP02.phx.gbl...
> We have a several vb.net apps, that were recently upgraded from Framework
> 1.1 to Framework 2.0. Randomly these apps have started throwing the error
> below, the line of code is a connection.open, the connection string has a
> timeout of 500, which should be plenty of time. All of the apps use the
> same data layer class (happens on the same line of code). It doesn't
> happen every time, it's just random and it happens on the connect open not
> when executing the command(an insert into a large table).
>
> Anyone have any suggetions?
>
> The Source was: .Net SqlClient Data Provider
>
> With the Message: Timeout expired. The timeout period elapsed prior to
> completion of the operation or the server is not responding.
>
> Stack Trace: at
> System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
> Boolean breakConnection)
> at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
> exception, Boolean breakConnection)
> at
> System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
> stateObj)
> at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,
> SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet
> bulkCopyHandler, TdsParserStateObject stateObj)
> at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String
> methodName, Boolean async)
> at
> System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult
> result, String methodName, Boolean sendToPipe)
> at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
> at PSXSTL.Digecenter.LookupDataReference.insertDB() in
> C:\$\Digecenter\PSXSTL.Digecenter\Archives\LookupDataReference.vb:line 558
>
> Target Site: Void OnError(System.Data.SqlClient.SqlException, Boolean)
>
> Additional Info: Error occurred in
> PSXSTL.Digecenter.LookupDataReference/insertDB
> at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
> Boolean breakConnection)
> at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
> exception, Boolean breakConnection)
> at
> System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
> stateObj)
> at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,
> SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet
> bulkCopyHandler, TdsParserStateObject stateObj)
> at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String
> methodName, Boolean async)
> at
> System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult
> result, String methodName, Boolean sendToPipe)
> at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
> at PSXSTL.Digecenter.LookupDataReference.insertDB() in
> C:\$\Digecenter\PSXSTL.Digecenter\Archives\LookupDataReference.vb:line 558
>
> For more information, see Help and Support Center at
>
http://go.microsoft.com/fwlink/events.asp. >
> Thanks in advance!
> Rick
>
>