Hi, I am on LLBLGen 5.8 using SelfServicing in dotnet 4.8 website.
I have a piece of code that runs very fast in a console app but gives a timeout in ASP.NET web application:
I am running the following code:
StortingLogPrcRcptTypedView tv = new StortingLogPrcRcptTypedView();
PredicateExpression filter = new PredicateExpression(new FieldBetweenPredicate(StortingLogPrcRcptFields.LogDateTimeCreated, from, to));
SortExpression sorter = new SortExpression(StortingLogPrcRcptFields.LogDateTimeCreated | SortOperator.Ascending);
tv.Fill(0, sorter, true, filter);
return tv.CreateDataReader();
The field between predicate is a period of 1 day. It should result in a collection of app. 180 rows of 52 fields.
When I run this in a console app, it finishes in less than a second ( {00:00:00.7600039} ).
In the web application, after waiting for at least 30 seconds I get the following error:
Details van uitzondering: System.ComponentModel.Win32Exception: Time-out van wachtbewerking
Regel 243: // __LLBLGENPRO_USER_CODE_REGION_START AdditionalFields
Regel 244: // __LLBLGENPRO_USER_CODE_REGION_END
Regel 245: return DAOFactory.CreateTypedListDAO().GetMultiAsDataTable(fieldsInResultset, this, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, allowDuplicates, groupByClause, transactionToUse, pageNumber, pageSize);
Regel 246: }
Regel 247:
And the stacktrace:
[ORMQueryExecutionException: An exception was caught during the execution of a retrieval query: Er is een time-out opgetreden tijdens de uitvoering. De time-outperiode is verstreken voordat de bewerking was voltooid of de server reageert niet.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.]
SD.LLBLGen.Pro.ORMSupportClasses.RetrievalQuery.Execute(CommandBehavior behavior) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.8\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Query\RetrievalQuery.cs:119
SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.ExecuteMultiRowDataTableRetrievalQuery(IRetrievalQuery queryToExecute, DbDataAdapter dataAdapterToUse, DataTable tableToFill, IEntityFields fieldsToReturn) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.8\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\SelfServicingSpecific\DaoBase.cs:1941
SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.PerformGetMultiAsDataTableAction(DataTable tableToFill, ITransaction transactionToUse, QueryParameters parameters) in C:\Myprojects\VS.NET Projects\LLBLGen Pro v5.8\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\SelfServicingSpecific\DaoBase.cs:1388
HITc.SBSLog.TypedViewClasses.StortingLogPrcRcptTypedView.Fill(Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, Boolean allowDuplicates, IPredicate selectFilter, ITransaction transactionToUse, IGroupByCollection groupByClause, Int32 pageNumber, Int32 pageSize) in F:\DevelopmentMeppel\DataAccessLayer\SBSLog\Domain\TypedViewClasses\StortingLogPrcRcptTypedView.cs:245
HITc.SBSLog.TypedViewClasses.StortingLogPrcRcptTypedView.Fill(Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, Boolean allowDuplicates, IPredicate selectFilter) in F:\DevelopmentMeppel\DataAccessLayer\SBSLog\Domain\TypedViewClasses\StortingLogPrcRcptTypedView.cs:199
HITc.SBSLog.TypedViewClasses.StortingLogPrcRcptTypedView.StortingDetails(DateTime from, DateTime to) in F:\DevelopmentMeppel\DataAccessLayer\SBSLog\Domain\HITcTypedViewClasses\StortingLogPrcRcptTypedView.cs:18
HITc.PAX.SBS.Stortingen.StortingenoverzichtDetails.btnExport_Click(Object sender, ImageClickEventArgs e) in F:\DevelopmentMeppel\Portal\HITcPortal\PAX\SBS\Stortingen\StortingenoverzichtDetails.aspx.cs:61
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +143
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +188
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1959