MVC上Server 2008 R2的 - 如何? [英] MVC on Server 2008 R2 - How?

查看:184
本文介绍了MVC上Server 2008 R2的 - 如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的Windows Server 2008 R2数据中心的x64与框架3.5 SP1和安装框架4。当我(使用Web安装项目安装VS 2008的MVC 2.0)安装我的MVC应用程序和浏览应用程序我得到System.Web.Mvc无法找到一个错误。如果我相关的DLL(System.Web.Mvc等)复制到bin目录中的应用程序完美的运行起来。

I have a new WIndows Server 2008 R2 x64 DataCentre with Framework 3.5 SP1 and Framework 4 installed. When I install my MVC application (VS 2008 MVC 2.0 using a Web Setup project installer) and browse to the application I get an error that System.Web.Mvc cannot be found. If I copy the relevant DLLs (System.Web.Mvc etc)into the bin directory the app runs up perfectly.

我已签到处的安装,但只能找到VS2008的相关位,无服务器运行时。我如何获得安装在这样的环境ASP.Net MVC,使我们不必复制本地的dll文件?

I have checked everywhere for an installer but can only find the VS2008 related bits, no server runtime. How do I get ASP.Net MVC installed in this environment so that we don't have to Copy Local the dlls?

非常感谢
布赖恩

Many thanks Brian

推荐答案

您可以做一个服务器上安装它不需要安装Visual Studio:

You could do a server install which doesn't require Visual Studio installed:

msiexec /i AspNetMVC2.msi /l*v .\mvc.log MVC_SERVER_INSTALL="YES"

现在,你可能会问哪来的这个 AspNetMVC2.msi 来源。其实你下载 AspNetMVC2_VS2008.exe 从<一个href=\"http://www.microsoft.com/downloads/details.aspx?FamilyID=C9BA1FE1-3BA8-439A-9E21-DEF90A8615A9&displaylang=en\">here,重命名 .exe文件 .zip文件和里面你会发现你在找什么(在 mvcruntime 子文件夹)。

Now you are probably asking where's this AspNetMVC2.msi coming from. Actually you download AspNetMVC2_VS2008.exe from here, rename the .exe to .zip and inside you'll find what you are looking for (in the mvcruntime sub-folder).

这篇关于MVC上Server 2008 R2的 - 如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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