Aspx file downloading instead of displaying on web page

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.

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.

Did you ever figure this out? I’m experiencing this

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.

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.