I deployed my first ASP.NET 4.0/MVC 2 application onto a staging and test server. The problem is that when I browse to the application I just get the ASP.NET 404 "The resource cannot be found.
" page.
The application was written using:
- Visual Studio 2010 Premium
- Target Framework: .NET 4.0
- ASP.NET MVC 2.0
The application is deployed onto a Windows 2008 R2 server. ASP.NET 4.0 and ASP.NET MVC 2 are installed. The application is running in a 32-bit application pool configured for .NET 4 and running in Integrated Mode.
I've tested this application on my dev machine running Windows 7 Ultimate using both the VS Cassini server and IIS 7.5 and it works just fine.
Update - some additional notes about deployment
I deployed the application by right clicking on the project and selecting 'Publish'. I published to a local folder (Publish method: File System) on my dev PC and only published "Only the filesneeded to run this application".
I then FTP'd these files to the server. The application is running on the root of the website. I also tried deploying into a subfolder (with an application created for this in IIS).
Screen Shot:
What can I have missed?