Aspx file downloading instead of displaying on web page #22239
-
Hello! I just uploaded my first Visual Studio 2019 project to Github. After successfully uploading it, I built the following Github Pages website: https://winterrice.github.io/Login_VS/LogIn2/ (NOTE that I am calling it from the subfolder “LogIn2”.) BE AWARE that if you load this webpage it will automatically erroneously save the file “LogIn.aspx” to your download folder, so just please be aware of that in advance. So, that is the issue, that when I load the webpage it dowloads the LogIn.aspx file that the index.html file calls instead of displaying it in the browser. I tried uploading to Netlify as well and the same thing occurs. ANY help would be greatly appreciated! Thank you in advance for any advice. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Oh, and I forgot to add that when I run the webpage locally (in Visual Studio 2019) on my PC it displays everything perfectly, instead of downloading the Login2.aspx file. |
Beta Was this translation helpful? Give feedback.
-
Did you ever figure this out? I’m experiencing this |
Beta Was this translation helpful? Give feedback.
-
Hey, Chris! The only solution was to find a hosting site that supports ASP.NET. And I was looking for a free site. So I went with somee.com which has some advertising at the bottom of the site you create using it. I have not looked at this program or done any programming in months by the way. |
Beta Was this translation helpful? Give feedback.
-
This is the answer I’m afraid. GitHub Pages only supports static sites—sites made with pure HTML, CSS, and JS. If your site uses a server-side language like Python, PHP, or .NET you’ll need to find an alternate hosting provider. |
Beta Was this translation helpful? Give feedback.
-
I would be completely fine if GitHub pages simply served the ASPX file as HTML. I only have them in place because of a redirect need for old URLs |
Beta Was this translation helpful? Give feedback.
Hey, Chris! The only solution was to find a hosting site that supports ASP.NET. And I was looking for a free site. So I went with somee.com which has some advertising at the bottom of the site you create using it.
I have not looked at this program or done any programming in months by the way.