将mvc4网站转移到asp.net服务器

时间:2014-04-16 15:56:46

标签: c# asp.net-mvc asp.net-mvc-4

我对mvc4比较陌生,我将使用visual studio制作的mvc4网站转移到我的asp.net主机时遇到了一些问题。当我通过发布方法移动所有文件时,他不会显示该网页。他只是显示文本文件。当我运行我的Global.asax文件时,我收到以下错误:

  

无法加载类型' System.Data.Entity.Migrations.Model.ColumnModel'来自assembly' EntityFramework,Version = 4.4.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'。

     

System.TypeLoadException:无法加载类型' System.Data.Entity.Migrations.Model.ColumnModel'来自assembly' EntityFramework,Version = 4.4.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'。     at(wrapper managed-to-native)System.Type:type_is_assignable_from(System.Type,System.Type)     在/usr/src/mono-2.10.4/mcs/class/corlib/System/Type.cs:885中的System.Type.IsAssignableFrom(System.Type c)[0x00096]     在System.Web.Mvc.AreaRegistration.IsAreaRegistrationType(System.Type type)[0x00000] in:0     在System.Web.Mvc.TypeCacheUtil +<> c__DisplayClass1.b__0(System.Type类型)[0x00000] in:0     at System.Linq.Enumerable + c__Iterator35 1[System.Type].MoveNext () [0x00059] in /usr/src/mono-2.10.4/mcs/class/System.Core/System.Linq/Enumerable.cs:3010 at System.Collections.Generic.List 1 [System.Type] .AddEnumerable(IEnumerable 1 enumerable) [0x0001a] in /usr/src/mono-2.10.4/mcs/class/corlib/System.Collections.Generic/List.cs:126 at System.Collections.Generic.List 1 [System.Type] .. ctor(IEnumerable 1 collection) [0x0002f] in /usr/src/mono-2.10.4/mcs/class/corlib/System.Collections.Generic/List.cs:63 at System.Linq.Enumerable.ToList[Type] (IEnumerable 1 source)[0x00006]在/usr/src/mono-2.10.4/mcs/class/System.Core/System.Linq/Enumerable.cs:2847     在System.Web.Mvc.TypeCacheUtil.GetFilteredTypesFromAssemblies(System.String cacheName,System.Predicate`1谓词,IBuildManager buildManager)[0x00000] in:0     在System.Web.Mvc.AreaRegistration.RegisterAllAreas(System.Web.Routing.RouteCollection路由,IBuildManager buildManager,System.Object状态)[0x00000] in:0     在System.Web.Mvc.AreaRegistration.RegisterAllAreas(System.Object state)[0x00000] in:0     在System.Web.Mvc.AreaRegistration.RegisterAllAreas()[0x00000]中:0     在HeerlijkHulp.MvcApplication.Application_Start()[0x00000] in:0     at(wrapper managed-to-native)System.Reflection.MonoMethod:InternalInvoke(System.Reflection.MonoMethod,object,object [],System.Exception&)     在/usr/src/mono-2.10中的System.Reflection.MonoMethod.Invoke(System.Object obj,BindingFlags invokeAttr,System.Reflection.Binder binder,System.Object [] parameters,System.Globalization.CultureInfo culture)[0x000d5] .4 / mcs / class / corlib / System.Reflection / MonoMethod.cs:226

1 个答案:

答案 0 :(得分:0)

问题解决了: - 我的主人不支持MVC4