Operation returned an invalid status code 'Forbidden'/'NotFound'

%3CLINGO-SUB%20id%3D%22lingo-sub-3428626%22%20slang%3D%22en-US%22%3EOperation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3428626%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20having%20a%20recurring%20problem%20with%20our%20Bot%20in%20Teams%20that%20I%20am%20struggling%20to%20find%20a%20root%20cause%20and%20fix%20for.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20a%20bot%20that%20has%20been%20developed%20using%20the%20C%23%20Bot%20Framework%20SDK%20Version%204%20and%20.NET%20Core%203.1%20that%20is%20installed%20via%20Teams.%20There%20is%20an%20issue%20that%20is%20recurring%20in%20our%20Application%20Insights%20that%20I%20am%20struggling%20to%20figure%20out.%20There%20are%20multiple%20exceptions%20that%20happen%20intermittently%20with%20the%20message%20%22Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%22%20or%20%22Operation%20returned%20an%20invalid%20status%20code%20'NotFound'%22.%20The%20only%20commonality%20with%20all%20these%20errors%20are%20that%20they%20happen%20in%20the%20same%20area%20of%20the%20code.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20bot%20we%20have%20implemented%20makes%20use%20of%20a%20waterfall%20dialog%20system%20to%20handle%20the%20authentication%20and%20login%20for%20users%20and%20handle%20incoming%20messages%20once%20authenticated.%20The%20errors%20always%20occur%20when%20the%20bot%20is%20trying%20to%20move%20on%20to%20the%20next%20dialog%20step%20after%20completing%20the%20OAuthPrompt%20step%2C%20as%20shown%20in%20the%20screenshot%20below.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F374978i8228047D4BC088AF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22amatthewsyakchat_0-1653492996917.png%22%20alt%3D%22amatthewsyakchat_0-1653492996917.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20searched%20to%20try%20and%20find%20why%20this%20is%20happening%20or%20even%20a%20solution%20to%20this%20issue%20and%20although%20I%20have%20found%20similar%20problems%20and%20have%20tried%20their%20solutions%2C%20they%20have%20not%20been%20able%20to%20fix%20this%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20else%20had%20an%20issue%20similar%20to%20this%2C%20or%20know%20what%20the%20problem%20could%20be%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3428626%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3432836%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3432836%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1370351%22%20target%3D%22_blank%22%3E%40amatthews-yakchat%3C%2FA%3E-%20Could%20please%20share%20the%20any%20referred%20sample%20or%20repro%20steps%2CSo%20that%20we%20can%20tried%20it%20from%20our%20end%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3464490%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3464490%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1370351%22%20target%3D%22_blank%22%3E%40amatthews-yakchat%3C%2FA%3E-We%20are%20not%20able%20to%20reproduce%20the%20scenario.Could%20you%20please%20share%20the%20any%20referred%20sample%20or%20repro%20steps%2C%20So%20that%20we%20can%20investigate%20it%20from%20our%20end%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3470538%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3470538%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1202096%22%20target%3D%22_blank%22%3E%40Sayali-MSFT%3C%2FA%3E%26nbsp%3BApologies%20for%20the%20delayed%20response%2C%20I%20was%20on%20vacation%20for%20the%20last%20week.%20I'm%20not%20sure%20what%20the%20repro%20steps%20are%20for%20this%20issue%20as%20it%20happens%20intermittently%20and%20looking%20at%20the%20telemetry%20there%20doesn't%20seem%20to%20be%20any%20common%20ground%20or%20any%20cases%20where%20it%20happens%20100%25%20of%20the%20time.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20included%20the%20area%20of%20code%20where%20I%20think%20the%20error%20originates%20from%20below.%20Like%20I%20mentioned%20in%20my%20original%20post%2C%20we%20are%20using%20the%20WaterfallDialog%20approach%20with%20this%20bot%20and%20this%20is%20one%20of%20the%20steps%2C%20the%20error%20seems%20to%20be%20thrown%20when%20moving%20away%20from%20this%20step%20to%20the%20next.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Eprivate%20async%20Task%3CDIALOGTURNRESULT%3E%20PromptStepAsync(WaterfallStepContext%20stepContext%2C%20CancellationToken%20cancellationToken)%0A%7B%0A%20try%0A%20%7B%0A%20%20UserProfile%20Profile%20%3D%20await%20this._stateAccessor.GetAsync(stepContext.Context%2C%20()%20%3D%26gt%3B%20new%20UserProfile())%3B%0A%0A%20%20if%20(String.IsNullOrWhiteSpace(stepContext.Context.Activity.Text))%0A%20%20%7B%0A%20%20%20if%20(!String.IsNullOrWhiteSpace(Profile.CachedMessage))%0A%20%20%20%7B%0A%20%20%20%20stepContext.Context.Activity.Text%20%3D%20Profile.CachedMessage%3B%0A%20%20%20%20Profile.CachedMessage%20%3D%20String.Empty%3B%0A%20%20%20%7D%0A%20%20%7D%0A%0A%20%20return%20await%20stepContext.BeginDialogAsync(nameof(OAuthPrompt)%2C%20null%2C%20cancellationToken)%3B%0A%20%7D%0A%20catch%20(Exception%20exc)%0A%20%7B%0A%20%20Dictionary%3CSTRING%3E%20Properties%20%3D%20new%20Dictionary%3CSTRING%3E()%3B%0A%20%20Properties.Add(%22Class%22%2C%20%22MainDialog%22)%3B%0A%20%20Properties.Add(%22Method%22%2C%20%22PromptStepAsync%22)%3B%0A%0A%20%20AppInsightsHelper.LogException(exc%2C%20Properties%2C%20stepContext.Context)%3B%0A%0A%20%20await%20stepContext.Context.SendActivityAsync(BotResponse.ErrorMessage_GenericErrorResponse)%3B%0A%20%20return%20await%20stepContext.EndDialogAsync(cancellationToken%3A%20cancellationToken)%3B%0A%20%7D%0A%7D%3C%2FSTRING%3E%3C%2FSTRING%3E%3C%2FDIALOGTURNRESULT%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3486177%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3486177%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1370351%22%20target%3D%22_blank%22%3E%40amatthews-yakchat%3C%2FA%3E%20-We%20are%20tried%20with%20the%20following%20sample.%20It%20works%20for%20us%20.Could%20you%20please%20check%20it%20once%20from%20your%20end%20some%20points%3F%3CBR%20%2F%3E1.have%20you%20added%20bot%20auth%20on%20your%20azure%20bot%20and%20url%20in%20same%20format%20correct%20%3F%3CBR%20%2F%3E2.In%20App%20Setting%20check%20the%20connection%20name%3F%3CBR%20%2F%3ESample%20Link-%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FBotBuilder-Samples%2Ftree%2F14ed6ea596aa84d2b561d00f58f828ae8cc1a89a%2Fsamples%2Fcsharp_dotnetcore%2F46.teams-auth%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoft%2FBotBuilder-Samples%2Ftree%2F14ed6ea596aa84d2b561d00f58f828ae8cc1a89a%2Fsamples%2Fcsharp_dotnetcore%2F46.teams-auth%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3492197%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3492197%22%20slang%3D%22en-US%22%3EThis%20is%20the%20sample%20we%20used%20as%20our%20starting%20point%20for%20creating%20our%20bot.%20The%20connection%20name%20in%20the%20App%20Settings%20is%20correct.%20I'm%20sorry%20but%20I%20don't%20understand%20what%20you%20mean%20by%20your%20first%20point%3F%20Where%20would%20I%20check%20for%20this%20bot%20auth%20url%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3492328%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3492328%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1370351%22%20target%3D%22_blank%22%3E%40amatthews-yakchat%3C%2FA%3E%26nbsp%3B-%20On%20Azure%20Portal-%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Fportal.azure.com%2F%23home%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fportal.azure.com%2F%23home%3C%2FA%3E%3CBR%20%2F%3EYou%20need%20to%20check%20the%20URL%20and%20Bot%20connection%20Name%20also.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3492409%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3492409%22%20slang%3D%22en-US%22%3EI'm%20really%20sorry%20but%20I%20still%20don't%20understand%20what%20you%20need%20me%20to%20check%2C%20do%20you%20have%20an%20example%20of%20what%20I%20am%20looking%20for%2C%20or%20some%20sort%20of%20screenshot%20please%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3492457%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3492457%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1370351%22%20target%3D%22_blank%22%3E%40amatthews-yakchat%3C%2FA%3E%26nbsp%3B-Could%20you%20please%20provide%20sample%20which%20you%20refer%2Cso%20that%20I%20can%20guide%20you%20proper%20way%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3492535%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3492535%22%20slang%3D%22en-US%22%3EI%20am%20trying%20to%20find%20what%20you%20are%20referring%20to%20when%20you%20said%20%22have%20you%20added%20bot%20auth%20on%20your%20azure%20bot%20and%20url%20in%20same%20format%22%20but%20I%20don't%20know%20where%20in%20the%20Azure%20Portal%20to%20check%20for%20this%20information.%20I%20can%20confirm%20the%20Connection%20Name%20in%20the%20App%20Settings%20is%20correct%2C%20but%20I%20cannot%20confirm%20this%20url.%20I%20have%20looked%20in%20the%20Azure%20Bot%20resource%20and%20the%20App%20Service%20and%20I%20cannot%20see%20anything%20about%20bot%20auth%2C%20I%20just%20need%20to%20know%20where%20I%20should%20be%20looking%20to%20find%20this%20information.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3499857%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3499857%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1370351%22%20target%3D%22_blank%22%3E%40amatthews-yakchat%3C%2FA%3E%26nbsp%3B-You%20can%20check%20here%20Connection%20name%20and%20URL.%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22azure.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22azure.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22azure.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22azure.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22azure.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22azure.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F379791i967525B797C87BEA%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22azure.png%22%20alt%3D%22azure.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3509307%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3509307%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1202096%22%20target%3D%22_blank%22%3E%40Sayali-MSFT%3C%2FA%3E%26nbsp%3BI%20have%20noticed%20that%20we%20are%20using%20'Azure%20Active%20Directory'%20as%20the%20Service%20Provider%20on%20our%20bot%20authentication%2C%20would%20updating%20this%20to%20use%20'Azure%20Active%20Directory%20v2'%20help%20with%20the%20issues%20we%20are%20experiencing%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202022-06-15%20101727.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202022-06-15%20101727.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202022-06-15%20101727.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202022-06-15%20101727.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202022-06-15%20101727.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380505iABD8A3F27CB96BE9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%202022-06-15%20101727.png%22%20alt%3D%22Screenshot%202022-06-15%20101727.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3509402%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3509402%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1370351%22%20target%3D%22_blank%22%3E%40amatthews-yakchat%3C%2FA%3E%20-not%20sure%20about%20this.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3547064%22%20slang%3D%22en-US%22%3ERe%3A%20Operation%20returned%20an%20invalid%20status%20code%20'Forbidden'%2F'NotFound'%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3547064%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1202096%22%20target%3D%22_blank%22%3E%40Sayali-MSFT%3C%2FA%3E%26nbsp%3BWe%20are%20still%20struggling%20with%20this%20issue%2C%20but%20I%20have%20some%20more%20information%20that%20might%20be%20helpful.%20Here%20are%203%20stack%20traces%20from%20our%20telemetry%2C%20the%20first%20two%20are%20the%20'Operation%20Failed%3A%20NotFound'%20and%20'Operation%20Failed%3A%20Forbidden'%20errors%20that%20are%20occurring%20in%20the%20OAuth%20prompt%20step%20of%20our%20bot.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20third%20is%20another%20similar%20error%20I%20managed%20to%20find%20from%20another%20area%20of%20our%20code%2C%20where%20we%20are%20displaying%20a%20proactive%20message%20from%20the%20bot%20to%20the%20user.%20Looking%20at%20the%20traces%20they%20seem%20to%20have%20similar%20root%20causes%2C%20with%20the%20error%20originally%20coming%20from%20Microsoft.Bot.Connector.Conversations%2B%3CREPLYTOACTIVITYWITHHTTPMESSAGESASYNC%3E%3C%2FREPLYTOACTIVITYWITHHTTPMESSAGESASYNC%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CP%3E%3CSTRONG%3E'Operation%20Failed%3A%20Forbidden'%20Trace%201%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%222%22%3EMicrosoft.Bot.Schema.ErrorResponseException%3A%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Connector.Conversations%2B%3CREPLYTOACTIVITYWITHHTTPMESSAGESASYNC%3Ed__10.MoveNext%20(Microsoft.Bot.Connector%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FREPLYTOACTIVITYWITHHTTPMESSAGESASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Connector.ConversationsExtensions%2B%3CREPLYTOACTIVITYASYNC%3Ed__17.MoveNext%20(Microsoft.Bot.Connector%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FREPLYTOACTIVITYASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.BotFrameworkAdapter%2B%3CSENDACTIVITIESASYNC%3Ed__34.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITIESASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.TurnContext%2B%26lt%3B%26gt%3Bc__DisplayClass30_0%2B%26lt%3B%3CSENDACTIVITIESASYNC%3Eg__SendActivitiesThroughAdapter%7C1%26gt%3Bd.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITIESASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.TurnContext%2B%3CSENDACTIVITYASYNC%3Ed__29.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITYASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.TurnContext%2B%3CSENDACTIVITYASYNC%3Ed__28.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITYASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20YakBotService.Dialogs.MainDialog%2B%3CPROMPTSTEPASYNC%3Ed__8.MoveNext%20(YakBotService%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull%3A%20C%3A%5CDev%5CYakBot_Old_New%5CDialogs%5CMainDialog.cs%3A140)%3C%2FPROMPTSTEPASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallDialog%2B%3CONSTEPASYNC%3Ed__11.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FONSTEPASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallDialog%2B%3CRUNSTEPASYNC%3Ed__12.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FRUNSTEPASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallDialog%2B%3CRESUMEDIALOGASYNC%3Ed__9.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FRESUMEDIALOGASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallStepContext%2B%3CNEXTASYNC%3Ed__18.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FNEXTASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20YakBotService.Dialogs.MainDialog%2B%3CADMINCONSENTSTEPASYNC%3Ed__7.MoveNext%20(YakBotService%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull%3A%20C%3A%5CDev%5CYakBot_Old_New%5CDialogs%5CMainDialog.cs%3A108)%3C%2FADMINCONSENTSTEPASYNC%3E%3C%2FFONT%3E%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CP%3E%3CSTRONG%3E'Operation%20Failed%3A%20NotFound'%20Trace%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%222%22%3EMicrosoft.Bot.Schema.ErrorResponseException%3A%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Connector.Conversations%2B%3CREPLYTOACTIVITYWITHHTTPMESSAGESASYNC%3Ed__10.MoveNext%20(Microsoft.Bot.Connector%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FREPLYTOACTIVITYWITHHTTPMESSAGESASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Connector.ConversationsExtensions%2B%3CREPLYTOACTIVITYASYNC%3Ed__17.MoveNext%20(Microsoft.Bot.Connector%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FREPLYTOACTIVITYASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.BotFrameworkAdapter%2B%3CSENDACTIVITIESASYNC%3Ed__34.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITIESASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.TurnContext%2B%26lt%3B%26gt%3Bc__DisplayClass30_0%2B%26lt%3B%3CSENDACTIVITIESASYNC%3Eg__SendActivitiesThroughAdapter%7C1%26gt%3Bd.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITIESASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.TurnContext%2B%3CSENDACTIVITYASYNC%3Ed__29.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITYASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.TurnContext%2B%3CSENDACTIVITYASYNC%3Ed__28.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITYASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20YakBotService.Dialogs.MainDialog%2B%3CPROMPTSTEPASYNC%3Ed__8.MoveNext%20(YakBotService%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull%3A%20C%3A%5CDev%5CYakBot_Old_New%5CDialogs%5CMainDialog.cs%3A140)%3C%2FPROMPTSTEPASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallDialog%2B%3CONSTEPASYNC%3Ed__11.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FONSTEPASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallDialog%2B%3CRUNSTEPASYNC%3Ed__12.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FRUNSTEPASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallDialog%2B%3CRESUMEDIALOGASYNC%3Ed__9.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FRESUMEDIALOGASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallStepContext%2B%3CNEXTASYNC%3Ed__18.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FNEXTASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20YakBotService.Dialogs.MainDialog%2B%3CADMINCONSENTSTEPASYNC%3Ed__7.MoveNext%20(YakBotService%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull%3A%20C%3A%5CDev%5CYakBot_Old_New%5CDialogs%5CMainDialog.cs%3A108)%3C%2FADMINCONSENTSTEPASYNC%3E%3C%2FFONT%3E%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CP%3E%3CSTRONG%3E'Operation%20Failed%3A%20Forbidden'%20Trace%202%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%222%22%3EMicrosoft.Bot.Schema.ErrorResponseException%3A%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Connector.Conversations%2B%3CREPLYTOACTIVITYWITHHTTPMESSAGESASYNC%3Ed__10.MoveNext%20(Microsoft.Bot.Connector%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FREPLYTOACTIVITYWITHHTTPMESSAGESASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Connector.ConversationsExtensions%2B%3CREPLYTOACTIVITYASYNC%3Ed__17.MoveNext%20(Microsoft.Bot.Connector%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FREPLYTOACTIVITYASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.BotFrameworkAdapter%2B%3CSENDACTIVITIESASYNC%3Ed__34.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITIESASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.TurnContext%2B%26lt%3B%26gt%3Bc__DisplayClass30_0%2B%26lt%3B%3CSENDACTIVITIESASYNC%3Eg__SendActivitiesThroughAdapter%7C1%26gt%3Bd.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITIESASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.TurnContext%2B%3CSENDACTIVITYASYNC%3Ed__29.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITYASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.TurnContext%2B%3CSENDACTIVITYASYNC%3Ed__28.MoveNext%20(Microsoft.Bot.Builder%2C%20Version%3D4.11.1.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FSENDACTIVITYASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20YakBotService.Dialogs.MainDialog%2B%3CPROMPTSTEPASYNC%3Ed__8.MoveNext%20(YakBotService%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull%3A%20C%3A%5CDev%5CYakBot_Old_New%5CDialogs%5CMainDialog.cs%3A140)%3C%2FPROMPTSTEPASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallDialog%2B%3CONSTEPASYNC%3Ed__11.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FONSTEPASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallDialog%2B%3CRUNSTEPASYNC%3Ed__12.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FRUNSTEPASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallDialog%2B%3CRESUMEDIALOGASYNC%3Ed__9.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FRESUMEDIALOGASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20Microsoft.Bot.Builder.Dialogs.WaterfallStepContext%2B%3CNEXTASYNC%3Ed__18.MoveNext%20(Microsoft.Bot.Builder.Dialogs%2C%20Version%3D4.8.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35)%3C%2FNEXTASYNC%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification%20(System.Private.CoreLib%2C%20Version%3D4.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D7cec85d7bea7798e)%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eat%20YakBotService.Dialogs.MainDialog%2B%3CADMINCONSENTSTEPASYNC%3Ed__7.MoveNext%20(YakBotService%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull%3A%20C%3A%5CDev%5CYakBot_Old_New%5CDialogs%5CMainDialog.cs%3A108)%3C%2FADMINCONSENTSTEPASYNC%3E%3C%2FFONT%3E%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EHopefully%20this%20new%20information%20is%20useful.%20We%20are%20still%20using%20the%20AAD%20V1%20OAuth%20Service%20Provider%20for%20now%2C%20but%20we%20can%20update%20this%20if%20you%20think%20it%20will%20help%20solve%20this%20issue%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am having a recurring problem with our Bot in Teams that I am struggling to find a root cause and fix for.

 

We have a bot that has been developed using the C# Bot Framework SDK Version 4 and .NET Core 3.1 that is installed via Teams. There is an issue that is recurring in our Application Insights that I am struggling to figure out. There are multiple exceptions that happen intermittently with the message "Operation returned an invalid status code 'Forbidden'" or "Operation returned an invalid status code 'NotFound'". The only commonality with all these errors are that they happen in the same area of the code.

 

The bot we have implemented makes use of a waterfall dialog system to handle the authentication and login for users and handle incoming messages once authenticated. The errors always occur when the bot is trying to move on to the next dialog step after completing the OAuthPrompt step, as shown in the screenshot below.

amatthewsyakchat_0-1653492996917.png

 

I have searched to try and find why this is happening or even a solution to this issue and although I have found similar problems and have tried their solutions, they have not been able to fix this error.

 

Has anyone else had an issue similar to this, or know what the problem could be?

13 Replies
@amatthews-yakchat- Could please share the any referred sample or repro steps,So that we can tried it from our end?
@amatthews-yakchat-We are not able to reproduce the scenario.Could you please share the any referred sample or repro steps, So that we can investigate it from our end?

@Sayali-MSFT Apologies for the delayed response, I was on vacation for the last week. I'm not sure what the repro steps are for this issue as it happens intermittently and looking at the telemetry there doesn't seem to be any common ground or any cases where it happens 100% of the time.

 

I've included the area of code where I think the error originates from below. Like I mentioned in my original post, we are using the WaterfallDialog approach with this bot and this is one of the steps, the error seems to be thrown when moving away from this step to the next.

 

private async Task<DialogTurnResult> PromptStepAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken)
{
	try
	{
		UserProfile Profile = await this._stateAccessor.GetAsync(stepContext.Context, () => new UserProfile());

		if (String.IsNullOrWhiteSpace(stepContext.Context.Activity.Text))
		{
			if (!String.IsNullOrWhiteSpace(Profile.CachedMessage))
			{
				stepContext.Context.Activity.Text = Profile.CachedMessage;
				Profile.CachedMessage = String.Empty;
			}
		}

		return await stepContext.BeginDialogAsync(nameof(OAuthPrompt), null, cancellationToken);
	}
	catch (Exception exc)
	{
		Dictionary<String, String> Properties = new Dictionary<String, String>();
		Properties.Add("Class", "MainDialog");
		Properties.Add("Method", "PromptStepAsync");

		AppInsightsHelper.LogException(exc, Properties, stepContext.Context);

		await stepContext.Context.SendActivityAsync(BotResponse.ErrorMessage_GenericErrorResponse);
		return await stepContext.EndDialogAsync(cancellationToken: cancellationToken);
	}
}

 

@amatthews-yakchat -We are tried with the following sample. It works for us .Could you please check it once from your end some points?
1.have you added bot auth on your azure bot and url in same format correct ?
2.In App Setting check the connection name?
Sample Link-
https://github.com/microsoft/BotBuilder-Samples/tree/14ed6ea596aa84d2b561d00f58f828ae8cc1a89a/sample...
This is the sample we used as our starting point for creating our bot. The connection name in the App Settings is correct. I'm sorry but I don't understand what you mean by your first point? Where would I check for this bot auth url?

@amatthews-yakchat - On Azure Portal-  https://portal.azure.com/#home
You need to check the URL and Bot connection Name also.

I'm really sorry but I still don't understand what you need me to check, do you have an example of what I am looking for, or some sort of screenshot please?

@amatthews-yakchat -Could you please provide sample which you refer,so that I can guide you proper way?

I am trying to find what you are referring to when you said "have you added bot auth on your azure bot and url in same format" but I don't know where in the Azure Portal to check for this information. I can confirm the Connection Name in the App Settings is correct, but I cannot confirm this url. I have looked in the Azure Bot resource and the App Service and I cannot see anything about bot auth, I just need to know where I should be looking to find this information.

@amatthews-yakchat -You can check here Connection name and URL.
azure.png

@Sayali-MSFT I have noticed that we are using 'Azure Active Directory' as the Service Provider on our bot authentication, would updating this to use 'Azure Active Directory v2' help with the issues we are experiencing?

 

Screenshot 2022-06-15 101727.png

@Sayali-MSFT We are still struggling with this issue, but I have some more information that might be helpful. Here are 3 stack traces from our telemetry, the first two are the 'Operation Failed: NotFound' and 'Operation Failed: Forbidden' errors that are occurring in the OAuth prompt step of our bot.

 

The third is another similar error I managed to find from another area of our code, where we are displaying a proactive message from the bot to the user. Looking at the traces they seem to have similar root causes, with the error originally coming from Microsoft.Bot.Connector.Conversations+<ReplyToActivityWithHttpMessagesAsync>

 


'Operation Failed: Forbidden' Trace 1

 

Microsoft.Bot.Schema.ErrorResponseException:
at Microsoft.Bot.Connector.Conversations+<ReplyToActivityWithHttpMessagesAsync>d__10.MoveNext (Microsoft.Bot.Connector, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Connector.ConversationsExtensions+<ReplyToActivityAsync>d__17.MoveNext (Microsoft.Bot.Connector, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.BotFrameworkAdapter+<SendActivitiesAsync>d__34.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.TurnContext+<>c__DisplayClass30_0+<<SendActivitiesAsync>g__SendActivitiesThroughAdapter|1>d.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.TurnContext+<SendActivityAsync>d__29.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.TurnContext+<SendActivityAsync>d__28.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at YakBotService.Dialogs.MainDialog+<PromptStepAsync>d__8.MoveNext (YakBotService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: C:\Dev\YakBot_Old_New\Dialogs\MainDialog.cs:140)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallDialog+<OnStepAsync>d__11.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallDialog+<RunStepAsync>d__12.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallDialog+<ResumeDialogAsync>d__9.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallStepContext+<NextAsync>d__18.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at YakBotService.Dialogs.MainDialog+<AdminConsentStepAsync>d__7.MoveNext (YakBotService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: C:\Dev\YakBot_Old_New\Dialogs\MainDialog.cs:108)



'Operation Failed: NotFound' Trace

 

Microsoft.Bot.Schema.ErrorResponseException:
at Microsoft.Bot.Connector.Conversations+<ReplyToActivityWithHttpMessagesAsync>d__10.MoveNext (Microsoft.Bot.Connector, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Connector.ConversationsExtensions+<ReplyToActivityAsync>d__17.MoveNext (Microsoft.Bot.Connector, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.BotFrameworkAdapter+<SendActivitiesAsync>d__34.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.TurnContext+<>c__DisplayClass30_0+<<SendActivitiesAsync>g__SendActivitiesThroughAdapter|1>d.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.TurnContext+<SendActivityAsync>d__29.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.TurnContext+<SendActivityAsync>d__28.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at YakBotService.Dialogs.MainDialog+<PromptStepAsync>d__8.MoveNext (YakBotService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: C:\Dev\YakBot_Old_New\Dialogs\MainDialog.cs:140)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallDialog+<OnStepAsync>d__11.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallDialog+<RunStepAsync>d__12.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallDialog+<ResumeDialogAsync>d__9.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallStepContext+<NextAsync>d__18.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at YakBotService.Dialogs.MainDialog+<AdminConsentStepAsync>d__7.MoveNext (YakBotService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: C:\Dev\YakBot_Old_New\Dialogs\MainDialog.cs:108)



'Operation Failed: Forbidden' Trace 2

 

Microsoft.Bot.Schema.ErrorResponseException:
at Microsoft.Bot.Connector.Conversations+<ReplyToActivityWithHttpMessagesAsync>d__10.MoveNext (Microsoft.Bot.Connector, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Connector.ConversationsExtensions+<ReplyToActivityAsync>d__17.MoveNext (Microsoft.Bot.Connector, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.BotFrameworkAdapter+<SendActivitiesAsync>d__34.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.TurnContext+<>c__DisplayClass30_0+<<SendActivitiesAsync>g__SendActivitiesThroughAdapter|1>d.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.TurnContext+<SendActivityAsync>d__29.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.TurnContext+<SendActivityAsync>d__28.MoveNext (Microsoft.Bot.Builder, Version=4.11.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at YakBotService.Dialogs.MainDialog+<PromptStepAsync>d__8.MoveNext (YakBotService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: C:\Dev\YakBot_Old_New\Dialogs\MainDialog.cs:140)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallDialog+<OnStepAsync>d__11.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallDialog+<RunStepAsync>d__12.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallDialog+<ResumeDialogAsync>d__9.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Bot.Builder.Dialogs.WaterfallStepContext+<NextAsync>d__18.MoveNext (Microsoft.Bot.Builder.Dialogs, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at YakBotService.Dialogs.MainDialog+<AdminConsentStepAsync>d__7.MoveNext (YakBotService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: C:\Dev\YakBot_Old_New\Dialogs\MainDialog.cs:108)


Hopefully this new information is useful. We are still using the AAD V1 OAuth Service Provider for now, but we can update this if you think it will help solve this issue?