Using ASP.NET in GitHub Pages

为君一笑 提交于 2020-01-22 13:43:46

问题


I am trying to create a personal website on GitHub Pages using the ASP.NET Web Forms template from Visual Studio 2013. (I'm trying to learn ASP.NET/C#)

But it looks like GitHub pages only will load a file named "index.html" as the home page.

I made my index.html file redirect to my Default.aspx file, but it just causes my browser to download that file. This is my index.html file currently:

<html>
<head>
<title></title>
<meta http-equiv="refresh" content="1;url=/JoeWebsite/Default.aspx">
<meta name="keywords" content="automatic redirection">
</head>
<body>
If your browser doesn't automatically go there within a few seconds, 
you may want to go to 
<a href="/JoeWebsite/Default.aspx">My Website</a> 
manually.
</body>
</html>

The ASP.NET project is in the correct repo in github. The folder for the project is named "JoeWebsite" evident from the code snippet above.

Is it possible to have a ASP.NET website in GitHub? How?

If not, is there an alternative free hosting service that does?


回答1:


As far as I know Github does not support ASP.NET, but you can use a free Azure account. Take a look at:

http://www.asp.net/hosting



来源:https://stackoverflow.com/questions/30444185/using-asp-net-in-github-pages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!