问题描述
首先,我试图寻找卷材N如何做到这一点,但他们都没有为我工作。也尝试过网络部署,网络部署软件包,文件系统。
我想要什么,如果你们可以,是一个简单的一步一步的指导和部署Web项目的要求。
我现在有,我尝试了所有的教程我能找到网络上新安装的win7(虚拟机)。
请给我最直观的,易于理解的方式来部署一个MVC 3应用程序。
还做我需要添加/配置IIS7?
项目:MVC和放大器; mvc4
操作系统:WIN7 32位
SQL Server 2008中
感谢您: - )
- 安装IIS 7
- 确保IIS 7可以处理ASP.NET请求。该教程可以发现here.
-
现在你有两个选择:
3.1您的计算机上安装ASP.NET MVC。这将安装ASP.NET MVC DLL在机器的GAC。这是最简单的解决方案。
3.2的设置所谓的斌部署的你的MVC应用程序。这将确保当您发布应用程序时,ASP.NET MVC DLL的也将被复制到输出目录。你可以在这里找到教程
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 & mvc4OS: win7 32 bitSQL server 2008
thank you :-)
解决方案- Install IIS 7
- Ensure that IIS 7 can process ASP.NET requests. A tutorial can be found here.
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.
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四分之三的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!