[Bot Framework]-- Sorry, my bot code is having an issue when hosted to Microsoft Teams RRS feed

  • General discussion

  • I am trying to save user data in context using  context.PrivateConversationData.SetValue<bool>("AccessTokenValue", false) in the dialog class and then trying to get this value using 

    bool exist;
    context.PrivateConversationData.TryGetValue<bool>("AccessTokenValue",out exist);

    but I am getting Sorry, my bot code is having an issue.  after hosting this app to  Microsoft Teams. I guess this is because it is not finding AccessTokenValue in the context. But I can't figure out a way to hold value in context. Interesting thing is that when using Bot Emulator I am not getting this error. Its working fine. Also if hosted to Microsoft teams few users can access it without any issues but new users are facing this issue.

    Moiz Ajmal

    Saturday, September 16, 2017 1:48 PM