How to deploy mvc 3 /4 using vs2012

北战南征 提交于 2019-12-04 14:48:32
  1. Install IIS 7
  2. Ensure that IIS 7 can process ASP.NET requests. A tutorial can be found here.
  3. Now you have two options:

    3.1 Install ASP.NET MVC on your machine. This will install the ASP.NET MVC DLL's in your machine's GAC. This is the most simple solution.

    3.2 Setup your MVC application for a so-called bin deploy. This will ensure that when you publish your application, the ASP.NET MVC DLL's will also be copied to the output directory. You can find a tutorial here.

  4. Deploy your ASP.NET MVC applicaton.

Your app should now be up and running! If your app still doesn't work, I suggest checking this troubleshoot guide: http://blogs.msdn.com/b/rickandy/archive/2011/04/22/test-you-asp-net-mvc-or-webforms-application-on-iis-7-in-30-seconds.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!