Window Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, 13 August 2008

Hosting ASP.NET application from WebDev.WebServer.EXE

Posted on 00:03 by Unknown

Applications like WebMatrix we can say as a revolution for those who were not able to have Server on their machine like Windows XP Home Edition Users were not capable to have IIS on their system.

From Visual Studio2005 or say .NET Framework 2.0, a technique was introduce to host ASP.NET applications without invoking IIS.

I guess my all ASP.NET developer friends must be observing the Balloon which comes up once you from TaskBar saying "ASP.NET Development Server http://loca...." once you press F5 to run the ASP.NET application,like I have shown below

webhost1 

Such thing can be implemented manually from .NET Command Prompt too. Do you remember the following path?, Yes. This is where all important files get stored like vbc,csc,ngen etc. to be name a few.

\windows\Microsoft.NET\Framework\v2.0.50727

Here you can find one utility name as "WebDev.WebServer.EXE" which is standard executable file, just double click on that to run and you will get following screen.

webhost2

This window explains everything how should one go for hosting app via command line, This window gives us the list of parameters and syntax required to proceed ahead.

Next Step is to start .NET Command Prompt as follows :

Click on Start > All Programs > Microsoft Visual Studio 2008 > Visual Studio Tools > Visual Studio 2008 Command Prompt

Go there and Execute the WebDev Command followed by path and parameters like this :

WebDev.WebServer /port:8080 /path:"c:\devcon\devcon" /vpath:"/MyDevCon"

In my case, my application resides at "c:\devcon\devcon" and I want a virtual name to be MyDevCon like we create virtual alias in IIS/ Virtual directory one can say.

webhost3

Once the command is fire successfully, you can see the corresponding notification on Taskbar as shown below :

Webhost4

If you carefully observe the image above, you can see that the alias which I gave on command prompt as "MyDevCon" is now hosted on my localhost and default port which I given as 8080 which is standard for all web applications.

You can right click on that icon in System tray, you will get 3 Options as 

1.Open in Browser : This will open the hosted ASP.NET application in Browser

2. Stop : This will stop this instance of hosting and for rehosting again you need to fire the same command.

3.Show Details : This is pictorial representation in dialog manner to show what is hosted and where like below :

webhost6

By choosing option 1 you can see your application in Default Browser. This is how WebDev.WebServer utility works.

I recommend this for small commercial Web Applications which don't have much of business logic and overall size is low.

This is always helpful when your WebServer have issues.

Vikram.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • First Windows Phone 7 update February 2011 - Small update but Big start
    After tons of rumors and set of predictions on Windows Phone 7 all over Internet, Microsoft came up with first Windows Phone 7 minor update ...
  • The little Story of “I Unlock Joy” event by Microsoft and Pune User Group
      This post is about recent “I Unlock Joy” event happened in Pune which was conducted by Microsoft and Pune User Group. Little History : ...
  • Silverlight On Mobile : Windows Phone 7 Splash Screen and Customization
    After talking about 3D capabilities on Windows Phone 7 using Silverlight in last article , Now I am moving ahead with small but equally impo...
  • Silverlight 5 : Platform Invoke (PInvoke) in Silverlight
      Two days back Microsoft announced availability of Silverlight 5 RC,I encourage you to download bits from here , My friend Pete Brown alr...
  • Introduction to Speech Capabilities in Windows Phone 8 – Part 1
    After a long..I am writing blog, I hope and I wish I will resume blogging like I use to in past. Lots of things happened in past few months....
  • MCTS : Microsoft Silverlight 4 Development Exam Guide (70-506) by Packt Publishing
      Hello, After a long time I got chance to come back here.I will soon resume blogging in month of August. Last 4-5 months were horrible due...
  • Introduction to Speech Capabilities in Windows Phone 8 – Part 2
    Hope you enjoyed my last article on Speech Capability in Windows Phone 8, Today I am posting another part or you can say little extension t...
  • Silverlight 3 : Insert & Update Data using WCF Service with DataForm and DataGrid
    In my Lap around Silverlight 3 series, I have written a separate article on DataForm in Silverlight 3, This article is a basic extension to ...
  • Mango : Using DeviceStatus in Windows Phone 7.1
    First of all “Thank You” for your wonderful response and comments on my last article on Silverlight Vs HTML5 ,I hope you like the points I ...
  • Silverlight, HTML5 & Windows 8 : Where we are heading to ?
    This is not the post or yet another post on most happening debate of Silverlight and HTML5, This is just a visit to all of them to realize t...

Blog Archive

  • ►  2013 (4)
    • ►  August (1)
    • ►  April (3)
  • ►  2012 (4)
    • ►  July (1)
    • ►  March (2)
    • ►  January (1)
  • ►  2011 (24)
    • ►  December (1)
    • ►  September (4)
    • ►  August (2)
    • ►  July (1)
    • ►  June (4)
    • ►  May (3)
    • ►  April (3)
    • ►  March (1)
    • ►  February (4)
    • ►  January (1)
  • ►  2010 (21)
    • ►  December (1)
    • ►  November (2)
    • ►  October (3)
    • ►  September (2)
    • ►  August (4)
    • ►  July (5)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2009 (49)
    • ►  December (1)
    • ►  November (5)
    • ►  October (2)
    • ►  September (1)
    • ►  August (5)
    • ►  July (5)
    • ►  June (1)
    • ►  May (5)
    • ►  April (5)
    • ►  March (9)
    • ►  February (4)
    • ►  January (6)
  • ▼  2008 (43)
    • ►  December (3)
    • ►  November (9)
    • ►  October (7)
    • ►  September (4)
    • ▼  August (2)
      • I am @ DevCon :) - 30,31 August 08 gonna be Thrill...
      • Hosting ASP.NET application from WebDev.WebServer.EXE
    • ►  July (3)
    • ►  June (4)
    • ►  May (3)
    • ►  March (3)
    • ►  February (5)
Powered by Blogger.

About Me

Unknown
View my complete profile