zoukankan      html  css  js  c++  java
  • [转]]将 ASP.NET MVC3 Razor 项目部署到虚拟主机中

    原链接:http://www.cnblogs.com/taven/archive/2011/08/14/2138077.html

     

    国内很多网站空间都只支持.NET 2.0 和 .NET 3.0 3.5,很少有空间商支持.NET 4的,即使有个别支持.NET 4,但是不支持MVC的默认路由访问形式。

     

    Go Daddy 的主机支持,并且费用很低,系统为 Win 2008 R2 64位,10GB网站空间,网站并发最便宜的也支持100个,PHP支持5.2和5.3,.NET支持 ASP.NET v1.0/2.0/3.0/3.5 和 ASP.NET v4.0,默认为.NET 4,并且默认已经支持MVC 2,如果要支持MVC3,只需要在发布站点的时候,多复制几个DLL文件到BIN文件夹就可以了,DLL清单如下:

     

    System.Web.Abstractions.dll

    System.Web.Helpers.dll

    System.Web.Mvc.dll 
    System.Web.Razor.dll
    System.Web.Routing.dll
    System.Web.WebPages.dll
    System.Web.WebPages.Razor.dll

    System.Web.WebPages.Deployment.dll 

     

    DLL打包下载:http://files.cnblogs.com/taven/MVC3_DLL.rar 

     

    否则会报如下:

     

    页面显示错误

    Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

     

    Could not load file or assembly 'Microsoft.Web.Infrastructure ...

    Could not load file or assembly '

    System.Web.Helpers

     ...

     

    Could not load file or assembly '

    System.Web.Mvc

     ...

    Could not load file or assembly '

    System.Web.Razor

     ...

    Could not load file or assembly '

    System.Web.Routing 

     ...

    Could not load file or assembly '

    System.Web.WebPages

     ...

    Could not load file or assembly '

    System.Web.WebPages.Razor

     ...

    Could not load file or assembly '

    System.Web.WebPages.Deployment

     ...

     

     Go Daddy 你值得拥有!

  • 相关阅读:
    git命令小汇总和github
    有关版本控制--SVN
    ng-做一个简单的通讯录--学习使用路由和HTTP
    ng-辅助操作
    ng-router
    ng-http
    ng-指令
    ng-组件
    ng-核心特性(模型概念)
    ng--tolist说明
  • 原文地址:https://www.cnblogs.com/scgw/p/3273610.html
Copyright © 2011-2022 走看看