Share via

TurnContext objects get disposed in Microsoft bot framework session timeout function

Anonymous
2022-09-06T13:32:45+00:00

I'm working on a scenario where the user is warned after 1 minute of inactivity and after another, 1-minute chat will auto close.

Callback is successfully invoked after 1 minute but when I'm using TurnContext to send a message to user then it shows an exception that "cannot access a disposed object".

Can we prevent to dispose object for some time or if there is any other solution so please help me.

Thank you!

Microsoft 365 and Office | Project | Other | Other
Microsoft 365 and Office | Project | Other | Other

Microsoft project management software used to plan, manage, and communicate a project schedule and other information among workgroup members, project managers, and other stakeholders.

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

John Project 49,715 Reputation points Volunteer Moderator
2022-09-07T18:28:39+00:00

Tanzeel Ali,

You might try this website, it looks like it would be appropriate for your issue. https://github.com/microsoft/botbuilder-js/issues/2130 John

Was this answer helpful?

0 comments No comments

4 additional answers

Sort by: Most helpful
  1. John Project 49,715 Reputation points Volunteer Moderator
    2022-09-08T13:22:43+00:00

    Tanzeel Ali,

    You're welcome and thanks for the feedback.

    John

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-09-08T09:43:23+00:00

    ok, Thanks John

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2022-09-07T08:43:23+00:00

    Can you guide me, that which forum it should be, its a Microsoft Chatbot Code issue.
    I could find any relevant forum related to coding issues, in Ask a New Question page.

    Was this answer helpful?

    0 comments No comments
  4. Dale Howard [MVP] 29,860 Reputation points MVP Volunteer Moderator
    2022-09-06T17:38:57+00:00

    Tanzeel --

    Um, you posted your question in a user forum that is dedicated to questions about Microsoft Project, Project Online, Project Server, and Project for the Web. All of these tools are project management applications. If you really want someone to answer your question, I think you need to repost that question in a more relevant user forum. Hope this helps.

    Was this answer helpful?

    0 comments No comments