I recently had a client who was hosting a site on IIS under Windows XP Pro using .NET and ASP.
As a result, I needed to set up an appropriate development environment to test and debug the site before handing it over.
I opted for setting up VMware install that was running the necessary OS and software.
Following is a quick how-to on setting it all up.
Installing IIS 5.1 and .NET 2.0 on Windows XP Pro:
- Go to Add/Remove programs
- Put the WinXP Pro install CD in the machine
- Click on Add/Remove Windows Components and click on the check box next to Internet Information Services (IIS)
- After installation you should be able to open up a browser and type "localhost" and get the default welcome page.
- If you get either a "You are not authorized to view this page" or a user name and password prompt, make sure that the user account with which you are currently logged in has administrator rights and that you have a password set for that account.
- Install .NET
- Register .NET with IIS
- Open a command prompt window, change dir to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 (or whatever other version you are registering)
- Run the following commands in sequence:
- aspnet_regiis -i
- aspnet_regiis -s W3SVC/
- Make sure to include the .aspx extension on your files and you should be all set to start developing .NET applications.
- To enable other machines to connect to your new webserver go to Control Panel/Security Center/ and click on "Windows Firewall" under Manage Security settings for:
- Go to the Advanced Tab
- Click on the "Settings" button next to the "Network Connection Settings" and click on the check box next to "Web Server (HTTP)".