I've tried looking into other similar question but found no solution. My app is a chatbot and using try catch everywhere wouldn't even catch the exception. The bot can break very randomly from any part of the conversation (any dialog or even It can be made to break on a very specific part(just for reliably reproduce the exception) of the dialog within a waterfall which will loop for input to collect description until certain keyword is received from the user). In the conversation loop. It can happen anywhere after 1-2 turn or it can happen after few hundred turns.
This is all the details given by visual studio when it breaks.
System.Runtime.InteropServices.SEHException
HResult=0x80004005
Message=External component has thrown an exception.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
Output panel shows:
An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in System.Private.CoreLib.dll
External component has thrown an exception.
Local panel have nothing.
EDIT: I've actually scoped the bug down to this line of code causing the break.
DialogTurnResult results = await dialogContext.ContinueDialogAsync(cancellationToken);
It did not continue through the next step of my waterfall
private async Task<DialogTurnResult> CaseTitleResultStepAsync(WaterfallStepContext step, CancellationToken cancellationToken)
{
await step.Context.SendActivityAsync("result");
}
User contributions licensed under CC BY-SA 3.0