You might want to check the following;
- Website has been created in IIS
- Website is running correct version of .Net
- There are only websites of the same .Net version in each application pool
- The site can run scripts
I prefer to change VS to use the local IIS rather than the built in
web server which usually runs on a different port and you have less
control over it.