Forum Discussion
Custom ASPX files are downloading, not running.
Hi All,
I have some custom ASPX files on a SharePoint site. When you click on them, they run a html file (saved as ASPX). However, if I create a new file in the same vein, when a user clicks on it, it downloads instead of running.
Even if I copy an existing file and paste in the same folder, the existing file will continue to run as intended however the new file will download, even though the file is identical.
Has anyone experienced any similar issues, or know of a solution? Thanks.
- ExpiscornovusIron Contributor
Ashley_Nicholson custom site scripts are blocked. So, aspx files wouldn't be able to run because of that setting:
When you try to allow it the custom script settings for a specific site only lasts for a maximum of 24 hours. After that time, the setting will reset to its original blocked value for that specific site.
What are you trying to present in those aspx pages?- Ashley_NicholsonCopper ContributorThe article is very recent. Does this signify that it's a recent change?
Any previously uploaded files still function perfectly, but new ones don't. Is there any reason why old ones wouldn't work?
If I allow the custom settings, and the file works, will it stop working after 24 hours? Or will I just have to test that and see?
The content is iframe embedded and presents as an animated button that opens a window to a URL with a specific window size. The destination and the URL can be customised. These buttons are then presented on various different pages where applicable.