如何部署使用vs2012 MVC四分之三 [英] How to deploy mvc 3 /4 using vs2012

查看:153
本文介绍了如何部署使用vs2012 MVC四分之三的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我试图寻找卷材N如何做到这一点,但他们都没有为我工作。也尝试过网络部署,网络部署软件包,文件系统。

我想要什么,如果你们可以,是一个简单的一步一步的指导和部署Web项目的要求。

我现在有,我尝试了所有的教程我能找到网络上新安装的win7(虚拟机)。

请给我最直观的,易于理解的方式来部署一个MVC 3应用程序。
还做我需要添加/配置IIS7?

项目:MVC和放大器; mvc4
操作系统:WIN7 32位
SQL Server 2008中

感谢您: - )


解决方案

  1. 安装IIS 7

  2. 确保IIS 7可以处理ASP.NET请求。该教程可以发现<一个href=\"http://www.iis.net/learn/install/installing-iis-7/installing-iis-on-windows-vista-and-windows-7\">here.

  3. 现在你有两个选择:

    3.1您的计算机上安装ASP.NET MVC。这将安装ASP.NET MVC DLL在机器的GAC。这是最简单的解决方案。

    3.2的设置所谓的斌部署的你的MVC应用程序。这将确保当您发布应用程序时,ASP.NET MVC DLL的也将被复制到输出目录。你可以在这里找到教程


  4. 部署您的ASP.NET MVC的一个应用。


您的应用程序现在应该启动和运行!如果您的应用程序仍然不能正常工作,我建议选中此故障排除指南:<一href=\"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\">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

First of all, i tried searching the web n how to do this but all of them did not work for me. Also tried the web deploy, web deploy package and file system.

What I want, if you guys may, is a simple step by step guide and the requirements of deploying a web project.

I have now a newly installed win7 (virtual machine) where I tried all of the tutorials i can find on web.

Please give me the most straightforward and easy to understand way to deploy an MVC 3 app. Also do i need to add / configure IIS7?

project: mvc & mvc4 OS: win7 32 bit SQL server 2008

thank you :-)

解决方案

  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

这篇关于如何部署使用vs2012 MVC四分之三的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆