Hola Alexey Me parece que el timeout que te da es de conexion, no de ejecución. Podrías tener mal el nombre del servidor sql por ejemplo o el web server no tiene visibilidad con el sql. Le pegaría una mira a la cadena de conexion....
Daniel Calvin 2009/6/12 Alexey Agapov <[email protected]> > Buen dia gente, > > Tengo un sp que cuando ejecuto desde asp.net que me da timeout expired > (tarda mas de 30 seg.). Si lo ejecuto directamente en sql (con la opcion > execute del submenu sobre sp) tarda 5 seg. > > Probe ejecutarlo por daab y de forma tradicional desde distintas > aplicaciones y siempre se va al timeout. ¿Alguna idea? > > Gracias > > > > .net framework 2.0 | vs2008 | sql Server 2005 > > __ > > Timeout expired. The timeout period elapsed prior to completion of the > operation or the server is not responding. > > > > 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.FinishExecuteReader(SqlDataReader > ds, RunBehavior runBehavior, String resetOptionsString) > > at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior > cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) > > at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior > cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, > DbAsyncResult result) > > at > System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult > result, String methodName, Boolean sendToPipe) > > at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() > > at _Default.test_Click(Object sender, EventArgs e) in > c:\Inetpub\wwwroot\WebSite\Default.aspx.cs:line 79 > -- Daniel A. Calvin Cooperator Team Member http://www.cooperator.com.ar Microsoft Certified Professional
