Al momento de generar reporte de historial de planilla que es una consulta de excel con un cliente muestra un error de timeout esto solo lo muestra cuando se genera mas de 6 meses del histórico porque el tiempo de espera se vence y ellos quieren tomar en cuenta todo el año completo para la consulta y al momento de solo generar 1 a 6 meses el reporte si se genera correctamente tambien se modificaron las configuraciones en web.config de AdoCommandTiemout, AsyncTiemoutInMiliseconds y defaultsettings timeout, se reinicio los pools pero la consulta de excel aun no lo toma en cuenta y se sigue venciendo, la consulta al generar mas de 6 meses en la vista de SQL solo se tarda 30 segundos en generar la vista.

¿Hay algún lugar donde se tenga que aumentar el tiempo de espera aparte del web.config para lograr que no se venza la conexión?

PS: A la planilla ellos le dicen Liquidación

alt text

•System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at Microsoft.Practices.EnterpriseLibrary.Data.Database.DoLoadDataSet(IDbCommand command, DataSet dataSet, String[] tableNames) at Microsoft.Practices.EnterpriseLibrary.Data.Database.LoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames) at Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteDataSet(DbCommand command) at Aseinfo.Infrastructure.Services.ExcelTableService.GetDataTable(Table excelTable, IEnvironmentVariables environmentVariables, IParameter[] parameters) in C:\vh4\Infrastructure\Services\Excel\ExcelTableService.cs:line 148 at Aseinfo.Infrastructure.Services.ExcelTableService.GenerateXMLWorksheet(Table excelTable, IEnvironmentVariables environmentVariables, IParameter[] parameters) in C:\vh4\Infrastructure\Services\Excel\ExcelTableService.cs:line 72 at Aseinfo.Infrastructure.Controllers.ConsultasExcelController.DescargarConsultaGenerada(Int32 codigo, Nullable`1 fecha, String titulo, String subtitulo, List`1 qbFields, Boolean mostrandoEnDialogo) in C:\vh4\Infrastructure\Controllers\ConsultasExcelController.cs:line 555 ClientConnectionId:2be49c7a-4fb0-4c4b-9617-0ea65424e018 Error Number:-2,State:0,Class:11

asked 19 Dec '17, 12:35

jroldan's gravatar image

jroldan
(suspended)
accept rate: 0%

edited 19 Dec '17, 12:40


Enciende el profiler y captura la consulta que exactamente realiza Evolution. De esa forma podras revisarlo y mejorar la consulta agregando indices o mejorando estadisticas

link

answered 19 Dec '17, 14:19

sbarahona's gravatar image

sbarahona ♦♦
(suspended)
accept rate: 32%

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
×11
×9
×9

Asked: 19 Dec '17, 12:35

Seen: 1,933 times

Last updated: 19 Dec '17, 14:19

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