且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在自己的服务器中自托管ASP.NET

更新时间:2023-02-15 21:06:55

请仔细阅读以下文章。



教程大>

自托管Web API(C#) [ ^ ]。



示例代码

[MSDN] ASP.NET Web API自助主机 [ ^ ]。
Please go through the below articles.

Tutorial
Self-Host a Web API (C#)[^].

Sample Code
[MSDN] ASP.NET Web API Self-Host[^].


请访问此链接

HTTP://www.c-sharpcorner .com / UploadFile / 2b481f / self-hosting-in-Asp-Net-web-api / [ ^ ]
please Visit this link
http://www.c-sharpcorner.com/UploadFile/2b481f/self-hosting-in-Asp-Net-web-api/[^]


您是否尝试使用IIS托管网站?如果未安装IIS,则可以从添加删除Windows组件中安装它。通过创建Web应用程序/虚拟目录在IIS上托管您的网站,并使用localhost / YourWebAppName在浏览器中打开。



请参阅链接 [ ^ ]了解更多详情。
Have you tried to host website using IIS? If IIS not installed then you can install it from Add Remove Windows Components. Host your website on IIS by creating Web Application/Virtual Directory and open in Browser using localhost/YourWebAppName.

Refer link [^] for more details.