Do your hosting accounts support MVC3 applications?
Our Web Hosting accounts support MVC3 applications by default, but our Shared Hosting accounts do not. For more information, see Am I using Classic Hosting or Web Hosting?
However, you can deploy ASP.NET MVC3 applications to Windows Shared Hosting accounts by copying certain assemblies to the bin
directory.
If you want to use an ASP.NET MVC 3 RC2 application with our Windows® Hosting accounts, you must use IIS 7, runtime version 4.0 with integrated pipeline mode, and then upload the required assembly dependencies.
To Use MVC3 Applications with Windows Shared Hosting
- Make sure your account uses IIS 7. For more information, see Customizing IIS Settings on Your Windows Hosting Account.
- Follow the instructions in Changing Pipeline Mode on Your Windows IIS 7 Hosting Account. Select Integrated Pipeline Mode.
- In your Project References section, set Copy Local to True for the following assemblies:
- System.Web.Abstractions
- System.Web.Helpers
- System.Web.Routing
- System.Web.Mvc
- System.Web.WebPages
- Add the following assemblies to your project, and then set Copy Local to True:
- Microsoft.Web.Infrastructure
- System.Web.Razor
- System.Web.WebPages.Deployment
- System.Web.WebPages.Razor
- Publish your application.