简体   繁体   English

为了在服务器上部署ASP.NET MVC 3(Razor)应用程序,必须执行哪些明确的工作

[英]What are the definite things to do in order to deploy ASP.NET MVC 3 (Razor) app on server

I have created a 我创建了一个

  • ASP.NET MVC 3 app using .net framework 4 使用.NET Framework 4的ASP.NET MVC 3应用

    which is working fine with 可以正常工作

  • Visual Studio inbuilt Casini Server Visual Studio内置的Casini服务器

.

As I don not have IIS , I am trying to deploy the app on another system having IIS 5.1 and .Net framewrok 4.0 client profile . 由于我没有IIS,因此我尝试在具有IIS 5.1.Net framewrok 4.0客户端配置文件的另一个系统上部署该应用程序。

I am able to see the directory listing but the moment I type the controller path it's not working. 我能够看到目录列表,但是当我键入控制器路径时,它不起作用。 What am I missing? 我想念什么?

Could this be due to framework client profile 这可能是由于框架客户端配置文件引起的
or Web.confif File 或Web.confif文件
Or due to folder permission (Though I tried giving all the permission to everone) 或由于文件夹的权限 (尽管我尝试将所有权限都授予所有人)

Do I need to Install ASP.NET framewrok on Server for running razor app 我是否需要在服务器上安装ASP.NET framewrok才能运行剃刀应用

ASP.Net MVC requires the full .NET profile. ASP.Net MVC需要完整的.NET配置文件。 The client profile won't be sufficient. 客户资料不足。

NET4 Client Profile: NET4客户端配置文件:
Always target NET4 Client Profile for all your client desktop applications (including Windows Forms and WPF apps). 始终将NET4客户端配置文件的目标定位为所有客户端桌面应用程序(包括Windows窗体和WPF应用程序)。

NET4 Full framework: Target NET4 Full only if the features or assemblies that your app need are not included in the Client Profile. NET4完整框架:仅当客户端配置文件中未包含您应用所需的功能或程序集时,才将NET4完整作为目标。 This includes: 这包括:

  • If you are building Server apps. 如果要构建服务器应用程序。 Such as: 如:
    o ASP.Net apps o ASP.Net应用
    o Server-side ASMX based web services o基于服务器端ASMX的Web服务
  • If you use legacy client scenarios. 如果使用旧版客户端方案。 Such as: 如:
    o Use System.Data.OracleClient.dll which is deprecated in NET4 and not included in the Client Profile. o使用NET4中不推荐使用的System.Data.OracleClient.dll,它不包含在客户端配置文件中。
    o Use legacy Windows Workflow Foundation 3.0 or 3.5 (WF3.0 , WF3.5) o使用旧版Windows Workflow Foundation 3.0或3.5(WF3.0,WF3.5)
  • If you targeting developer scenarios and need tool such as MSBuild or need access to design assemblies such as System.Design.dll 如果您针对开发人员场景并且需要诸如MSBuild之类的工具,或者需要访问诸如System.Design.dll之类的设计程序集

-- Source - 来源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM