question

YanniePang-7534 avatar image
0 Votes"
YanniePang-7534 asked RaytheonXie-MSFT commented

MS Teams Application HTTP Context Session Changed when Postback and failed to get SPContext

HI all,
I have a MS Teams App that contains tab for opening SharePoint Add-ins (Provider-hosted, asp.net webforms) pages.

When using MS Teams Desktop and web, the session always changes when Postback and failed to get SharePoint Context.

166803-image.png
After clicking the button for Postback

166707-image.png
This only happens in using MS Teams Desktop and Web for some users.

To replicate,
1. simply create a asp.net webform SharePoint Add in for SharePoint Online
2. in the default page add a asp:button to the page
3. deploy and add the app to SharePoint Online
4. Create a app using App Studio in MS Teams
5. add the default page as a tab in the app
6. open the app in MS Teams Web
7. click the button






office-sharepoint-onlineoffice-teams-app-dev
image.png (3.3 KiB)
image.png (5.7 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @YanniePang-7534 ,
I am currently doing some research on this issue, will let you know as soon as possible

0 Votes 0 ·

0 Answers