I know this has been covered in in various questions and all over the internet, but I think everyone else had a specific problem in mind. My situation is quit simple.
I have a naked Windows 2008 server with IIS7 and .NET 4.0 installed. Fully Patched up.
I have turned off the Default Web Site in IIS7 (press Stop)
I have created a new site called "Portal" and a matching App Pool. The app pool has been set to .NET 4.0 and it uses Integrat开发者_如何学JAVAed Pipeline, not Classic.
I have performed the /bin install of the MVC site. I've got the MVC assemblies in the /bin folder. I copied the files from my development machine to the appropriate folder in the server.
When I browse to the site, I get 403.14 Forbidden (can't list the contents of the folder. When I browse to http://localhost/Dashboard (which is a routed page) I get a 404.
What am I missing? Why doesn't IIS know to route the HTTP GET's to the MVC program and let the controllers work?
Install MVC 3.
http://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx
精彩评论