Blog of Adrian Anttila, containing my thoughts, comments and questions. RSS Feed


Building a site without IIS under Vista

The current project I'm on requires it to be hosted at a specific URL to run, in this case, http://silverline.msdev. Normally, you have 2 options, both involving IIS:

  • Update the hosts file in C:\Windows\system32\drivers\etc, with a line like this:
    127.0.0.1    silverline.msdev
    That line will cause all local requests for silverline.msdev to resolve to 127.0.0.1
  • Install the DNS service and configure the forward lookup zones to resolve correctly

However, I recently discovered a method that doesn't require IIS to even be installed when running the website using Visual Studio's development web server. If you configure your project properties similar to this (in conjunction with the hosts file update), you can avoid running your site under IIS 7, which I've had a lot of trouble with.

Just follow these steps to set everything up:

  1. Update your hosts file to include the necessary entry
    127.0.0.1    some.url
  2. Set the Start URL in your project properties to some.url; this step does require selecting Start URL as your Start Action
  3. Set the Specific Port to 80
  4. Insure the Virtual path is /

Once you've set everything up, debugging your web application will open a new browser instance with a URL of http://some.url.

 
Posted by Adrian Anttila | 0 Comments | Trackback Url | Bookmark with:        
Tags:

Links to this Post

Comments

Name:
URL:
Email:
Comments:

CAPTCHA Image Validation