6

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. From my (very little) experience with Rails, I recall every application containing its own development web server. Say I were trying to create a local-only application, but I want it to run in a web browser (Therefore 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?

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
Sanarothe
  • 192
  • 2
  • 12
  • I'm sorry, I didn't really make it clear. I'm aware of the VStudio development server, and of full blown server options. I'm asking if there's anything light and distributable. Ie, someone can download this, potentially somewhat large, package which contains my app and also a lightweight, only-needs-to-serve-one-person server to run it. I'm not entirely sure how ASP.Net works, since everything I've learned in class has been inside Visual Studio. (Not very satisfying, to be honest... I prefer the openness of Rails, but, hey. I'm in the class, I'd better learn the technology.) – Sanarothe Oct 16 '09 at 21:48
  • there are so many newer variants of this question! http://stackoverflow.com/questions/4795717/possible-to-use-aspnet-mvc2-without-iis http://stackoverflow.com/questions/10378966/self-hosting-asp-net-mvc http://stackoverflow.com/questions/5625326/self-host-asp-net-mvc-site http://stackoverflow.com/questions/34764963/self-host-asp-net-mvc-4-5-2 http://stackoverflow.com/questions/23558405/ http://stackoverflow.com/questions/30923217/ http://stackoverflow.com/questions/35330609/ http://stackoverflow.com/questions/27226954/ http://stackoverflow.com/questions/26882806/ – Tim Abell Mar 24 '17 at 00:06

6 Answers6

5

You may want to look into 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.

Wim Coenen
  • 66,094
  • 13
  • 157
  • 251
Jason Whitehorn
  • 13,585
  • 9
  • 54
  • 68
2

The simple answer is that you need a web server to run the application. 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. Like Alex mentioned the most popular one seems to be Cassini.

Mircea Grelus
  • 2,905
  • 1
  • 20
  • 14
-1

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.

To my understanding Visual Web Developer allows you to do the same as well. Visual Web Developer

John Lechowicz
  • 2,573
  • 3
  • 21
  • 34
-1

You can use the cassini web server. Please note that those are different redistributable:

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

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

Alex Reitbort
  • 13,504
  • 1
  • 40
  • 61
-1

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.

Surely it makes more sense to develop a WinForms application?

Jason Berkan
  • 8,734
  • 7
  • 29
  • 39
  • I understand that it's not effecient. But it's an exercise in ASP.Net rather than an exercise in c# + learning winforms, which I also know nothing of. Lastly, since the demo project that I've devised is to supplement Diablo 2 trading, I want it to be in the browser, right next to my forum tabs. Lastly, there is the slightest possibility that someone else might want to use this, and if I do complete it I'm surely going to post it, thus the research on standalone embedded servers, rather than just using the VS server. Chose aspnetserve because it's open source and supports 3.5 :) – Sanarothe Oct 16 '09 at 22:10
  • doesn't answer the question – Tim Abell Mar 23 '17 at 23:29
-2

Follow this guide to setup IIS on your PC to run ASP.NET apps:

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

Sonny Boy
  • 7,848
  • 18
  • 76
  • 104