Generando consultas de excel de todos los ingreso de un año, me está dando una time-out. Hay algún parámetro que permita extender el tiempo que evolution espera que SQL le responda?

El error que está dando es:

System.Data.SqlClient.SqlException (0x80131904): Valor de Timeout caducado. El período de tiempo de espera caducó antes de completar la operación o el servidor no responde. 
---> System.ComponentModel.Win32Exception (0x80004005): Tiempo de espera de la operación de espera agotado
en System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
en System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
en System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
en System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
en System.Data.SqlClient.SqlDataReader.get_MetaData()
en System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
en System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
en System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
en System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
en System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
en System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
en System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
en System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
en System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
en System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
en Microsoft.Practices.EnterpriseLibrary.Data.Database.DoLoadDataSet(IDbCommand command, DataSet dataSet, String[] tableNames)
en Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)
en Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteDataSet(DbCommand command)
en Aseinfo.Infrastructure.Services.ExcelTableService.GetDataTable(Table excelTable, IEnvironmentVariables environmentVariables, IParameter[] parameters)
en c:\VH4\Infrastructure\Services\Excel\ExcelTableService.cs:línea 134
en Aseinfo.Infrastructure.Services.ExcelTableService.GenerateXMLWorksheet(Table excelTable, IEnvironmentVariables environmentVariables, IParameter[] parameters)
en c:\VH4\Infrastructure\Services\Excel\ExcelTableService.cs:línea 75
en Aseinfo.Infrastructure.Controllers.ConsultasExcelController.DescargarConsultaGenerada(Int32 codigo, DateTime fecha, String titulo, String subtitulo, List`1 qbFields)
en c:\BuildAgent\work\608d469cc106b504\Infrastructure\Controllers\ConsultasExcelController.cs:línea 504

ClientConnectionId:89794633-1907-464a-8848-b315323506d1

asked 29 Apr '15, 21:54

Juan%20Carlos%20Soria's gravatar image

Juan Carlos Soria
1.1k171179185
accept rate: 41%

edited 29 Apr '15, 23:18

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635


En el web.config existe un parámetro que podes modificar y luego de esto debes reiniciar el pool.

Podes ver la siguiente pregunta: como-puedo-extender-el-tiempo-de-timeout-cuando-ejecuto-una-plantilla-de-importacion

link

answered 29 Apr '15, 22:05

Carlos%20Soria's gravatar image

Carlos Soria ♦♦
1.2k130141148
accept rate: 60%

Si te está dando timeout una consulta de Excel, no te olvides que ustedes escriben las vistas de donde salen los datos y tienen el control para mejorarlas.

Antes de cambiar el parámetro te recomendaría que analices si podes mejorar el tiempo de respuesta de la vista. Porque aumentar el timeout es trasladar el problema de la espera excesiva al usuario final.

link

answered 29 Apr '15, 23:16

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635
accept rate: 51%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×16
×16

Asked: 29 Apr '15, 21:54

Seen: 3,432 times

Last updated: 29 Apr '15, 23:19

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática