I have an issue that is not consistently occuring. I have a form that acts as a home page with several buttons leading to other forms. One button is Exit, which goes to a simple Terminate Window And Close Dialog then End component.
One of the linked to forms has the user fill in some data and click Done, which processes the form and takes you back to the home page.
I'd say about 50% of the time it works as intended, the data posts to the database and the home page is displayed.
The other 50% of the time, the user gets an application error. All the data the user entered posts to the database successfully, so it seems to be tripping up on moving from the form back to the home page. This is the error I get:
Exception Component Name: Terminate Window And Close Dialog
Exception Trigger Message: Response.Redirect cannot be called in a Page callback.
Exception Trigger Stack Trace: 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.DialogExecutionDelegate.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)
Since this doesn't consistently occur, troubleshooting gets to be a bit of a bear. Plus, I can't reproduce this in my debugger... only once it's been published.
Has anyone seen this error before and know what triggers it?