Please note this is a newbie post, for people like me who don't know anything about IIS 7 yet.
First, make sure IIS and ASP.NET are installed.
- Go to Control Panel
- Programs
- Add / remove Windows programs
- Check IIS Services
- Make sure WWW services and Web admin tools are checked
- Also make sure that ASP.NET is enabled in WWW services / Application development
Then, set up the correct permissions for your web application. Say it is located at C:\WebApp
- IIS_IUSRS needs read access to all .config files in C:\WebApp
- The ApplicationPoolIdentity "managed account" needs browse, read an execute permissions (at least) to C:\WebApp
- I couldn't set this account properly. I switched the identity back to network service and applied above permissions.
Also, you need to install the VS2008 SP1, which will give you detailed error messages if something goes wrong. In my case, I forgot to install some IIS components, such as "IIS 6 Metabase and Configuration Compatibility" and "Windows Authentication".
And don't forget to run VS2008 with elevated privileges!
1 From Cèbe -
Found the so-called ApplicationPoolIdentity resolves to the IIS APPPOOL\DefaultAppPool user.
Source