简体   繁体   English

ASP.Net便携式服务器

[英]ASP.Net portable server

I'm trying to start on a new project to help enrich my asp.net knowledge, since I'm not completely satisfied with what my class is teaching me. 我正在尝试开始一个新项目,以帮助丰富我的asp.net知识,因为我对我的课程教给我的内容并不完全满意。 From my (very little) experience with Rails, I recall every application containing its own development web server. 从我(很少)的Rails经验来看,我记得每个应用程序都包含自己的开发Web服务器。 Say I were trying to create a local-only application, but I want it to run in a web browser (Therefore ASP.Net). 假设我试图创建一个仅限本地的应用程序,但我希望它在Web浏览器中运行(因此ASP.Net)。 Are there any options in terms of being able to distribute an application and have it launch its own, or just not require IIS/VS/Apache-mono? 是否有任何选项可以分发应用程序并让它自己启动,或者只是不需要IIS / VS / Apache-mono?

You may want to look into aspNETserve . 您可能想要查看aspNETserve It sounds like it would fit your needs. 听起来它符合您的需求。 I haven't worked on it recently, so it probably has some rough edges. 我最近没有处理它,所以它可能有一些粗糙的边缘。

On the plus side its all open source, and if you are just getting started with ASP.NET it would be a real eye opener on how the internals of the ASP.NET lifecycle operate. 从好的方面来看,它是所有开源的,如果你刚刚开始使用ASP.NET,那么对于ASP.NET生命周期的内部运作方式来说,这将是一个真正的大开眼界。

The simple answer is that you need a web server to run the application. 简单的答案是您需要一个Web服务器来运行该应用程序。 It cannot run without one. 没有一个它就无法运行。

If we're talking demo purposes or you don't require that many features of a web server there are redistributable web-servers that you can include with your setup package. 如果我们正在谈论演示目的,或者您不需要Web服务器的许多功能,那么您可以在安装程序包中包含可再发行的Web服务器。 Like Alex mentioned the most popular one seems to be Cassini . 像亚历克斯提到的最受欢迎的似乎是卡西尼

I'm assuming that you want to run the site on the same machine you are developing it on. 我假设您要在开发它的同一台计算机上运行该站点。

Visual Studio 2005 and up allows you to run the site from VS itself if you want to view it locally on your development machine. 如果要在开发计算机上本地查看,Visual Studio 2005及更高版本允许您从VS本身运行该站点。

To my understanding Visual Web Developer allows you to do the same as well. 据我所知,Visual Web Developer允许您也这样做。 Visual Web Developer Visual Web Developer

You can use the cassini web server. 您可以使用cassini Web服务器。 Please note that those are different redistributable: 请注意,这些是不同的可再发行组件:

http://www.asp.net/Downloads/archived/cassini/ http://www.asp.net/Downloads/archived/cassini/

http://ultidev.com/products/Cassini/ http://ultidev.com/products/Cassini/

I'm not really certain why you would want to develop a web application (with all the difficulties it entails, due to the fact that you are dealing with a stateless connection to an unknown client machine), but then run the entire thing on the client machine. 我不确定你为什么要开发一个Web应用程序(由于你正在处理与未知客户端机器的无状态连接而带来所有困难),但是然后运行整个客户机器。

Surely it makes more sense to develop a WinForms application? 当然,开发WinForms应用程序更有意义吗?

Follow this guide to setup IIS on your PC to run ASP.NET apps: 按照本指南在PC上设置IIS以运行ASP.NET应用程序:

http://www.geekpedia.com/tutorial25_Setting-up-your-ASPNET-server-IIS.html http://www.geekpedia.com/tutorial25_Setting-up-your-ASPNET-server-IIS.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM