Response.Redirect cannot be called in a Page callback

book

Article ID: 169904

calendar_today

Updated On:

Products

Workflow Solution

Issue/Introduction

When using a Workflow forms project, a problem is occuring between linked model to linked model. An error is generated.

"Response.Redirect cannot be called in a Page callback "

 

Response.Redirect cannot be called in a Page callback 


Logfile messsages: 
StackTrace: System.ApplicationException: Response.Redirect cannot be called in a Page callback. 
at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) 
at LogicBase.Core.Models.Dialog.ASPXDialogExecutionDelegate.Execute(HttpContext context, DialogState state) 
at LogicBase.Core.Models.Dialog.AbstractDialogExecutionDelegate.LogicBase.Core.ExecutionEngine.IExecutionDelegate.Execute(IData data, IOrchestrationComponent component, String& outputPath, IExecutionEngine engine, TLExecutionContext context) 
at LogicBase.Core.ExecutionEngine.AbstractExecutionEngine.RunComponent(TLExecutionContext context, IData data, IOrchestrationComponent comp) 
Error,27. maj 2015 13:34:51,System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Exception: The dialog session named 'weaNR8cYd0GNbBfU6mctyQ' was not found 
at LogicBase.Core.Models.Dialog.DialogSession.Load(HttpContext context, String sessionName) 
at LogicBase.Core.Models.Dialog.ComposerForm.OnPreInit(EventArgs e) 
at System.Web.UI.Page.PerformPreInit() 
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
--- End of inner exception stack trace --- 
at System.Web.UI.Page.HandleError(Exception e) 
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
at System.Web.UI.Page.ProcessRequest() 
at System.Web.UI.Page.ProcessRequest(HttpContext context) 
at ASP.form_aspx.ProcessRequest(HttpContext context) 
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

Message Two: 
Error,27. maj 2015 13:41:28,System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Exception: The dialog session named 'Mz5UZ1uZXUmHzsfJweDPsQ' was not found 
at LogicBase.Core.Models.Dialog.DialogSession.Load(HttpContext context, String sessionName) 
at LogicBase.Core.Models.Dialog.ComposerForm.OnPreInit(EventArgs e) 
at System.Web.UI.Page.PerformPreInit() 
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
--- End of inner exception stack trace --- 
at System.Web.UI.Page.HandleError(Exception e) 
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
at System.Web.UI.Page.ProcessRequest() 
at System.Web.UI.Page.ProcessRequest(HttpContext context) 
at ASP.form_aspx.ProcessRequest(HttpContext context) 
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 

Cause

Multiple AJAX label components are not returning the expected data consistently

Environment

Workflow 7.x, 8.x

Resolution

The AJAX label component has a dependency on the data sources providing the label data.  Specifically, if this component uses Subdialog components as a data source, or other data sources that require time to collect and return the data sets required to populate, the AJAXLabel component must be configured with sufficient time to return the data, but not longer than 90 seconds. 

A simple  workaround is to replace the AJAX label components with ASCIIMerge Label components.