如何在本地主机上运行在Visual Studio(ASP.NET C#)上开发的网站 [英] How to Run a Website developed on Visual Studio (ASP.NET C#) on Local Host

查看:308
本文介绍了如何在本地主机上运行在Visual Studio(ASP.NET C#)上开发的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ASP.NET C#和SqlServer 2008在Visual Studio上开发了一个网站。我想运行该网站而不在localhost或IIS上的网络上托管。我想知道:

*我是否需要在服务器中安装Visual Studio和/或SQl Server 2008?

*如果是这样,安装所有这些后如何配置?

*或者需要任何其他工具?

I developed a website on Visual Studio using ASP.NET C# and SqlServer 2008. I want to run that website without hosting on Network on localhost or IIS. I want to know:
* Do I need to Install Visual Studio and/or SQl Server 2008 in my Server?
* If so, How to Configure after installing all these?
* Or any additional tools required?

推荐答案

看看这个链接,可能对你有帮助



http://www.dotnetcurry.com/aspnet/896/self-host-aspnet-webapi-without-iis
Have a look at this link, might help you

http://www.dotnetcurry.com/aspnet/896/self-host-aspnet-webapi-without-iis


1。在Visual Studio中打开项目

2.运行发布向导

3.在任何计算机上安装发布向导的结果,不需要VS.
1. Open the project in Visual Studio
2. Run publishing wizard
3. Install the outcome of the publishing wizard on any computer you want, no need for VS there.


用于托管你必须配置IIS。

或者你可以通过apache服务器momo模式托管你的asp.net应用程序。
for hosting you have to configure IIS.
or you can host your asp.net application through apache server momo mode.


这篇关于如何在本地主机上运行在Visual Studio(ASP.NET C#)上开发的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆