无法部署ASP.NET MVC 3

时间:2012-04-16 16:07:32

标签: asp.net-mvc deployment

我正在尝试使用asp.net MVC 3和jQuery Mobile实现一个iPad应用程序。 任何人都可以帮我弄明白为什么我不能部署我的应用程序吗?

我的服务器:Windows 2008 R2 Standard 64 Bit IIS:7.5 应用程序池:ASP.NET v4.0

MvcDiagnositics信息如下


Microsoft ASP.NET MVC诊断信息

此页面旨在帮助诊断与不匹配或冲突的ASP.NET MVC二进制文件相关的常见错误。

如果识别出已知问题,它将以红色文字显示在下方。 有关ASP.NET MVC或此实用程序的问题,请访问http://forums.asp.net/1146.aspx处的ASP.NET MVC论坛。

环境信息

操作系统:Microsoft Windows NT 6.1.7600.0

.NET Framework版本: 4.0.30319.225(32位)< -----这应该是64位???

网络服务器:Microsoft-IIS / 7.5

整合渠道:错误

工作进程: w3wp.exe

AppDomain: Homogenous = True,FullTrust = True

ASP.NET MVC程序集信息(System.Web.Mvc.dll)

装配版本:未知版本(3.0.20105.0)

全名:System.Web.Mvc,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35

代码库:file:/// F:/Projects/Mobile/bin/System.Web.Mvc.DLL

部署:bin-deployed

ASP.NET MVC期货装配信息(Microsoft.Web.Mvc.dll)

ASP.NET MVC Futures程序集尚未加载到此应用程序中。下载此

ASP.NET MVC Futures的

版本不可用。 MVC期货装配的预发布版本

一旦该版本的ASP.NET MVC成为RTM,

就不再可用了。

所有已加载的程序集

加载了48个装配体。

•App_global.asax.ur2ey1at,Version = 0.0.0.0,Culture = neutral,PublicKeyToken = null [ver = n / a,GAC = False]

•App_Web_umu0ymeo,Version = 0.0.0.0,Culture = neutral,PublicKeyToken = null [ver = n / a,GAC = False]

•EntityFramework,Version = 4.1.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.1.10331.0,GAC = False]

•FiftyOne.Foundation,Version = 2.0.6.2,Culture = neutral,PublicKeyToken = e0b3a8da0bbce49c [ver = 2.0.6.2,GAC = False]

•Microsoft.Build.Utilities.v4.0,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a [ver = 4.0.30319.1,GAC = True]

•Microsoft.CSharp,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a [ver = 4.0.30319.1,GAC = True]

•Microsoft.JScript,Version = 10.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a [ver = 10.0.30319.1,GAC = True]

•Microsoft.Web.Infrastructure,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 1.0.20105.407,GAC = False]

•Mobile,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null [ver = 1.0.0.0,GAC = False]

•mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.225,GAC = True]

•SMDiagnostics,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.1,GAC = True]

•System,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.1,GAC = True]

•System.Activities,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.ComponentModel.DataAnnotations,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.Configuration,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a [ver = 4.0.30319.1,GAC = True]

•System.Core,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.1,GAC = True]

•System.Data,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.1,GAC = True]

•System.Data.DataSetExtensions,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.1,GAC = True]

•System.Data.Entity,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.1,GAC = True]

•System.Drawing,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a [ver = 4.0.30319.1,GAC = True]

•System.EnterpriseServices,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a [ver = 4.0.30319.1,GAC = True]

•System.IdentityModel,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.1,GAC = True]

•System.Runtime.Caching,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a [ver = 4.0.30319.1,GAC = True]

•System.Runtime.DurableInstancing,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.Runtime.Serialization,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.1,GAC = True]

•System.ServiceModel,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.1,GAC = True]

•System.ServiceModel.Activation,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.ServiceModel.Activities,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.ServiceModel.Web,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.Web,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a [ver = 4.0.30319.206,GAC = True]

•System.Web.Abstractions,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.Web.ApplicationServices,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.Web.DynamicData,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.Web.Extensions,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.206,GAC = True]

•System.Web.Helpers,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 1.0.20105.407,GAC = False]

•System.Web.Mobile,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a [ver = 4.0.30319.1,GAC = True]

•System.Web.Mvc,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 3.0.20105.0,GAC = False]

•System.Web.Razor,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 1.0.20105.407,GAC = False]

•System.Web.RegularExpressions,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a [ver = 4.0.30319.1,GAC = True]

•System.Web.Routing,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.Web.Services,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a [ver = 4.0.30319.1,GAC = True]

•System.Web.WebPages,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 1.0.20105.407,GAC = False]

•System.Web.WebPages.Deployment,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 1.0.20105.407,GAC = False]

•System.Web.WebPages.Razor,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 1.0.20105.407,GAC = False]

•System.WorkflowServices,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.Xaml.Hosting,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 [ver = 4.0.30319.1,GAC = True]

•System.Xml,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.1,GAC = True]

•System.Xml.Linq,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 [ver = 4.0.30319.1,GAC = True]

诊断版本:2010年12月10日星期五(第11页)

报告生成日期:2012年4月16日,星期一,上午10:08:33

我的Global.asax信息如下

routes.IgnoreRoute(" {资源}个.axd / {*} PATHINFO&#34);

routes.MapRoute("默认",//路线名称

" {controller} / {action} / {id}",//带参数的网址

new {controller =" Home",action =" Index",id = UrlParameter.Optional} //参数默认值

);


我的Web.config信息如下


当我从本地计算机上测试时,我能够看到此默认页面如下

欢迎使用移动主页

以下是有关请求设备的一些信息:

•屏幕宽度:640

•屏幕高度:480

•LayoutEngine:Trident

有关Request.Browser属性的详细信息,请参阅MSDN。

有关用户指南,请参阅51Degrees.mobi。

有关其他数据属性的详细信息,请参阅51Degrees.mobi设备数据并获取每周数据更新。


请求设备不是移动设备。必须直接请求页面。

尝试从移动设备或移动设备模拟器访问网站。可以在此处找到流行的移动模拟器列表。

我尝试在服务器上安装aspnet_regiis.exe -i

我收到如下错误

C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319> aspnet_regiis.exe -i开始安装 ASP.NET(4.0.30319)。 ................完成安装ASP.NET(4.0.30319)。安装程序在操作期间检测到一些错误。有关详细信息,请阅读安装日志文件C:\ Users \ ADMINI~1.HIS \ AppData \ Local \ Temp \ 2 \ ASPNETSetup_00009.log


**是因为64位的aspnet_regiis.net安装不正确吗?

我一直试图在服务器上部署我的应用程序3天,但我没有找到任何运气。

请帮助我找出问题。

非常感谢你。**

1 个答案:

答案 0 :(得分:0)

试试这个

在您的服务器上安装mvc框架并将您的网站发布到文件夹并将该文件夹复制到您的服务器。

  1. 打开IIS管理器
  2. 右键点击“网站”
  3. 点击“添加网站...”
  4. 输入网站名称
  5. 点击“选择...”按钮选择应用程序池
  6. 选择“ASP.NET v4.0”(pipleline模式:集成)
  7. 在“内容目录”组中输入/浏览网站部署文件夹的路径(将其复制到服务器的位置)
  8. 点击“测试设置...”按钮以验证凭据是否符合要求
  9. 在“绑定”组中输入类型,IP地址,端口和主机名
  10. 在左侧树视图中选择新网站
  11. 双击要素视图(中间视图)中的“身份验证”图标
  12. 在新视图中,选择“匿名身份验证”行
  13. 点击操作面板(右侧)中的“编辑...”
  14. 在弹出视图中选择“应用程序池标识”单选按钮,然后单击“确定”
  15. 可选:回收应用程序池并重新启动网站