Wednesday, March 18, 2009

Setup IIS for ASP.NET projects

1. Make sure .Net Framework and IIS are installed.
2. Register ASP.NET with IIS by executing ASPNET_REGIIS.EXE -i Use the one from version 2.0 (i.e. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727)
3. Make sure ASP.NET 2.0 is the default framework:
1)Open IIS
2)Right-click on the default web site and click 'properties'.
3)Click on the ASP.NET tab.
4)Select ASP.NET 2.0 as the default version.
5)Repeat for the target web virtual directory
4. Click on Web Service Extensions and mark ASP.NET v2.0.50727 as 'allowed'. (For IIS 5.1, ignore this)
5. Right Click on the virtual directory - select properties and then click on "Create" next to the "Application" Label and the textbox. It will automatically create the "application" using the virtual directory's name. Now the application can be accessed.

No comments: