Instead of Loading the Web URL its downloading the .ASPX file

Anonymous
2024-09-11T13:13:03+00:00

Hi Team

We are hosting different web pages on SharePoint, and it was working fine until 09-09-2024.

Now we are trying to host a new website on SharePoint, but we are not able to host it on a web browser, and it gets downloaded when we click on the file."

Using .aspx file

Regards

Krishnan

Microsoft 365 and Office | SharePoint | For business | Windows

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

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-09-20T18:01:09+00:00

    We had the same issue in my office. Anything uploaded prior to 9/10/24 still works, but anything after that date is forcing a download. I have been working with Microsoft engineers on this issue. We took logs, tried tests in multiple tenants, and with different settings. After their investigation, they came back with the following reply. Below is a copy/paste of the response.

    ASPX pages will only render if custom scripting is allowed on the Site and was allowed at the time of upload and was uploaded by an account that has 'addandcustomizepages' permissions. If custom scripting is not allowed, or the account does not have that permission, the ASPX page is marked NoExecute. Even if the scripting is then allowed and the permission assigned, you will still not be able to open that until it has been reuploaded, as it was marked NoExecute due to custom scripting not being allowed/ the permission of the uploader to use custom scripting, which comes from the 'addandcustomizepages' permissions.

    We had custom scripting disabled in our tenant prior to 9/10, so we didn't think that was the issue, but after testing we did confirm that when we met BOTH conditions (permission granted to uploading person, and custom scripts enabled at time of upload), we were able to successfully render the ASPX file. Even after custom scripts were turned back off, that ASPX file was still working.

    My assumption (not confirmed by MS) is that there was some change during the security updates on the 10th that caused some kind of enforcement that was being missed prior to the update.

    Was this answer helpful?

    6 people found this answer helpful.
    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Anonymous
    2024-09-11T13:42:24+00:00

    Dear Krishnan,

    Good day!!

    Apologies for the inconvenience caused and please don’t worry, let’s work together on your concern and move towards a resolution path.

    I understand your concern and to my knowledge, the behavior you are encountering is not an expected and where when we check at our test tenants, we are able to load the sites pages in the page library of the SharePoint Online sites are opening in the browser instead of downloading.

    In this situation, I would like to confirm whether the same problem happens when you access the site pages in the InPrivate or Incognito window of the browser.

    If the same problem persists, I am sorry to convey that the problem should be further investigated by the related development team, where they can collect the HAR logs while reproducing the problem and perform further investigation.

    Note: I have checked the service health dashboard at the Microsoft end, where there is no related incident found.

    So, I request you to connect with your IT admin of your organization (How do I find my Microsoft 365 admin? - Microsoft Support) and raise a new service request from the Microsoft 365 admin center so that the related development team will connect with you and investigate the issue further.

    Reference: Get support - Microsoft 365 admin | Microsoft Learn

    Note: We apologize for redirecting you to related development support team because the moderators in this community are limited with the resource for further investigation and to get a quick resolution to your problem, we requested it.

    Appreciate your patience and understanding. Have a great day!!

    Best Regards,

    Sophia

    Was this answer helpful?

    0 comments No comments