2.Control Panel > Add or Remove Programmes > Click on Add/Remove Windows components
then checked IIS and click next to install IIS.
follow this link
Fix this by registering asp .net with IIS. To do this open a command prompt and go to the following directory:
This is assuming you’re using .Net 2.0 or higher (3.0, 3.5). Even if you’re using the 3.x series and Visual Studio 2008, you still need to go to the v2.0 directory for this operation – this is because the 3.x series are not a replacement for the 2.x series, but rather extensions. (3.x is a superset of 2.x and there have been no breaking changes to 2.x functionality).
f you want to understand this further, there is an interesting post about it here: http://blogs.msdn.com/vijaysk/archive/2008/03/20/running-asp-net-3-5-on-iis.aspx
For now though, run the following command:
execute it "
aspnet_regiis.exe -i" in command window