views:

168

answers:

3

Hello. I'm not sure what keywords to google for, so i'm gonna ask SO.

I have an asp.net website which host a database, wcf dll and silverlight application. I would like to create an .exe file to automatically run an integrated webserver with the application root being the project folder of where my asp.net files are.

Basically what I want to do is run the project in localhost with 1 click without starting up visual studio. Starting up the webserver, browser and redirecting to that localhost url.

The computer I will distribute this to may not have visual studio installed.

A: 

I decided to go with Cassina found here. WebDev.WebServer.exe was built on that.

Shawn Mclean
+1  A: 

Hi Mixmasterxp,

Check out the following article in which I have used C# to start the webdev server.

http://www.highoncoding.com/Articles/367%5FUnit%5FTesting%5FASP%5FNET%5FPages%5FUsing%5FWatiN.aspx

azamsharp
+1  A: 

Just want to let you know : There is a new feature in Asp.NET 4.0 ; Auto-Start :

The new "auto start" feature of ASP.NET 4 and IIS 7.5 provides a well-defined approach that allows you to perform expensive application startup and pre-cache logic that can run before any end-users hit your application. This enables you to have your application "warmed up" and ready from the very beginning, and deliver a consistent high performance experience.

More: Auto-Start ASP.NET Applications (VS 2010 and .NET 4.0 Series)

Braveyard