ASPX page is displayed everywhere except in Teams on Android

DavidG4P 21 Reputation points
2022-10-30T18:28:42.323+00:00

Hello Community & Microsoft Support,

We have a simple static HTML web page that had its extension renamed from HTML to ASPX, in order for it to be viewable via SharePoint or Teams.

On Windows, viewing the page works fine when opening it from OneDrive, from SharePoint or from Teams, both when opening the file directly, or when using one of the three links #1 to #3 below.

However, the first two links #1 and #2 do not work on Android. The first link produces the error message "Operation is not valid due to the current state of the object". With link #2, the ASPX file gets downloaded to the mobile device instead of showing the page.

Only link #3 can be opened and leads to a correct display of the web page on the mobile device, for example pinned as a tab in Teams, or directly in a browser. While we could use link #3 (via SharePoint), for organizational reasons it would be important to use link #1 from OneDrive instead.
(the links are highlighted with different colors to make it easier to see the structure of the links)

255425-image.png

All links #1 - #3 lead to files on my own OneDrive or SharePoint, respectively, and were created by myself, so there are no access restrictions with the links.

The questions are:

  1. What could be the reason that link #1 works everywhere except on Android, and how could this link be fixed to also work on Android?
  2. Why doesn't the SharePoint link work on Android unless the /:w:/r/ part is removed from the link?
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,395 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,054 questions
0 comments No comments
{count} votes

Accepted answer
  1. Haoyan Xue_MSFT 21,241 Reputation points Microsoft Vendor
    2022-10-31T09:53:21.113+00:00

    Hi ,
    I would like to confirm some issues with you now.
    1.What is in your simple static HTML web page? Is there any link or something?
    2.How did your links #2 come to be?
    /:w:/r/ in sharepoint shared link means(Only .doc files will contain this url.):

    /:r - indicates a read-only link  
    /:w - means Word document sharing  
    

    Here are my test steps:
    I created a simple static HTML web page that had its extension renamed from HTML to ASPX.
    Links #1 from OneDrive for business is displayed on Android normally.
    Links #2 from sharepoint shared link does not contain /:w:/r/ , and the display is normal.
    Links #3 is displayed on Android normally.

    I suggest that you don't go through sharepoint, can the file be displayed on android directly?If the display is normal, then the page itself has parts that Android does not support.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

13 additional answers

Sort by: Most helpful
  1. DavidG4P 21 Reputation points
    2022-10-31T23:51:41.81+00:00

    Hello Microsoft Support,

    thank you for the thorough and helpful answer.

    That static HTML page mainly contains a big table with colors, formatted text and some images, as well as links. The page was created with Word and is maintained and regularly updated with Word.

    Link #2 was created by clicking on the file in the SharePoint library and selecting "Share" from the context menu.

    However, I cannot reproduce the error anymore now.

    In the meantime, I had moved the file back to my local OneDrive folder. After the file got uploaded from there, I created the link for the file directly in my OneDrive online. This time the link works fine everywhere, and also in Android.

    Interestingly, the new link is exactly identical to the link #1 I created yesterday (which didn't work on Android).

    Now I can edit the ASPX file locally anytime directly in Word, and the changes to the website are displayed immediately after the upload on all platforms.

    I believe that this is the easiest possible workflow for publishing and maintaining a simple but professional web page in the company!

    Currently, I can only test the link and view the website for myself. However, there should be no reason why the web page should not be displayed to all authorized users, should there? The ASPX file and the associated HTML resource folder, which is automatically generated by Word, are both shared to a specific group of people:

    aUMJRfU.png

    Best regards
    David


  2. DavidG4P 21 Reputation points
    2022-11-02T21:31:40.763+00:00

    Unfortunately, the problem has occurred again.

    Neither the file nor the link have been changed in the meantime.

    The link still has the following pattern:

    256450-image.png

    The link works everywhere except on Android. On Android, this error message appears again:

    256555-image.png
    "Operation is not valid due to the current state of the object"

    Please advise.


  3. DavidG4P 21 Reputation points
    2022-11-04T19:34:49.443+00:00

    Unfortunately, exactly the same error message as shown in the screenshot above appears in 3 or 4 different other browsers on Android.

    Pls. advise how this can be fixed.

    0 comments No comments

  4. DavidG4P 21 Reputation points
    2022-11-10T21:37:55.377+00:00

    Pls. advise how this can be fixed.