I have an MVC app that runs fine from within VS2008. I want to publish it on my local IIS. However after publishing when I try to access it through localhost, it returns an error:

The website declined to show this page.


Ordinarily when I call the website URL, the default index page should get called, and typing the names of any of the controllers should invoke the respective views. However all I get is this error.

What is missing from the deployment? I already tried setting CopyToLocal = true for the three MVC assemblies, but no luck.

.