互联网主机服务商运行ASP.NET MVC [英] Run ASP.NET MVC in Internet Hosting Providers

查看:140
本文介绍了互联网主机服务商运行ASP.NET MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题很简单。我可以对已安装的共享服务器上运行的 ASP.NET MVC应用程序 ASP.NET 3.5而不是MVC?

My question is very simple. Can I run an ASP.NET MVC application on shared servers that has installed ASP.NET 3.5 but not MVC?

如果这是可能你能告诉我怎么样?

If this is possible could you tell me how?

推荐答案

您只需要包含 System.Web.dll程序 bin文件夹,它应该工作正常(也许在路由的dll文件夹中。我会检查出在某一时刻为这个确切的文章)。

You just need to include System.Web.dll in the bin folder and it should work fine (and maybe in the dll folder for routing. I'll check out for exact article for this in a moment).

这里的适当一个TODO的链接。

Here's a link with proper a TODO.

最有趣的部分:

使用ASP.NET MVC Beta版的发布,在ASP.NET MVC发布的组件自动安装到GAC。结果
  System.Web.Mvc结果
  System.Web.Routing结果
  System.Web.Abstractions

With the release of ASP.NET MVC Beta, the assemblies distributed with ASP.NET MVC are automatically installed into the GAC.
System.Web.Mvc
System.Web.Routing
System.Web.Abstractions

虽然本地开发的应用程序,这是没有问题的。但是,当你准备好应用程序部署到一个托管服务提供商,这很可能是一个问题,如果主机供应商没有安装在GAC中的ASP.NET MVC组件。

While developing an application locally, this isn’t a problem. But when you are ready to deploy your application to a hosting provider, this might well be a problem if the hoster does not have the ASP.NET MVC assemblies installed in the GAC.

幸运的是,ASP.NET MVC还是斌部署。如果您的托管服务提供商安装ASP.NET 3.5 SP1,那么你只需要包括MVC DLL。如果您的托管服务提供商仍然在ASP.NET 3.5,那么你就需要所有三个部署。事实证明,它真的很容易做到的。

Fortunately, ASP.NET MVC is still bin-deployable. If your hosting provider has ASP.NET 3.5 SP1 installed, then you’ll only need to include the MVC DLL. If your hosting provider is still on ASP.NET 3.5, then you’ll need to deploy all three. It turns out that it’s really easy to do so.

这篇关于互联网主机服务商运行ASP.NET MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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