Asp.net mvc 尝试使用Mono运行MVC 3 website plus EntityFramework会导致MissingMethodException

Asp.net mvc 尝试使用Mono运行MVC 3 website plus EntityFramework会导致MissingMethodException,asp.net-mvc,entity-framework,asp.net-mvc-3,mono,xamarin-studio,Asp.net Mvc,Entity Framework,Asp.net Mvc 3,Mono,Xamarin Studio,我使用Visual Studio 2012在Windows 7上构建了一个ASP.NET MVC 3 web应用程序。我的应用程序在Visual Studio中构建和运行时没有任何问题。我想在OS X 10.8.2上使用Xamarin Studio 4.0和Mono 3.0.4编辑并运行该web应用程序。以下是我到目前为止所做的尝试: 在Xamarin工作室打开了我的.sln 已删除对System.Data.Entity和System.Web.Entity的引用 已将System.Web.Hel

我使用Visual Studio 2012在Windows 7上构建了一个ASP.NET MVC 3 web应用程序。我的应用程序在Visual Studio中构建和运行时没有任何问题。我想在OS X 10.8.2上使用Xamarin Studio 4.0和Mono 3.0.4编辑并运行该web应用程序。以下是我到目前为止所做的尝试:

  • 在Xamarin工作室打开了我的.sln
  • 已删除对System.Data.Entity和System.Web.Entity的引用
  • 已将System.Web.Helpers(版本1.0.0.0)、System.Web.Mvc(版本3.0.0.0)和System.Web.WebPages(版本1.0.0.0)的DLL复制到bin文件夹
  • 删除了对System.Web.Helpers、System.Web.Mvc和System.Web.Webpages的旧引用
  • 将my*.Designer.cs文件中的“using System.Data.*”替换为“using System.Data.Entity.Core.*”
  • 删除了对EntityFramework(版本4.x)的引用
  • 已从我的bin文件夹中删除EntityFramework.dll和EntityFramework.xml
  • 添加了对/Library/Frameworks/Mono.framework/Libraries/Mono/4.5/EntityFramework.dll(版本6.0.0.0)的引用
  • 单击运行
  • 单击“运行”后,出现以下异常:

    Exception rethrown at [0]: 
     ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Web.Configuration.HostingEnvironmentSection ---> System.MissingMethodException: Method not found: 'System.Configuration.ConfigurationProperty..ctor'.
      --- End of inner exception stack trace ---
      at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
      at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000b9] in /Users/duncan/git/mono/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.4/_build/mono-3.0.4.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:524 
      --- End of inner exception stack trace ---
      at (wrapper xdomain-invoke) System.AppDomain:DoCallBack (System.CrossAppDomainDelegate)
      at (wrapper remoting-invoke-with-check) System.AppDomain:DoCallBack (System.CrossAppDomainDelegate)
      at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) [0x002fb] in /Users/duncan/git/mono/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.4/_build/mono-3.0.4.git/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs:244 
      at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) [0x0003a] in /Users/builder/data/lanes/mono-mac-ui-refresh-master/3108f76b/source/bockbuild/profiles/mono-mac-release/build-root/xsp-2.11/_build/mono-xsp-d3e2f80/src/Mono.WebServer/VPathToHost.cs:150 
      at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00775] in /Users/builder/data/lanes/mono-mac-ui-refresh-master/3108f76b/source/bockbuild/profiles/mono-mac-release/build-root/xsp-2.11/_build/mono-xsp-d3e2f80/src/Mono.WebServer.XSP/main.cs:486 
      at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00025] in /Users/builder/data/lanes/mono-mac-ui-refresh-master/3108f76b/source/bockbuild/profiles/mono-mac-release/build-root/xsp-2.11/_build/mono-xsp-d3e2f80/src/Mono.WebServer.XSP/main.cs:264 
    

    我用谷歌搜索了这个例外,但还没有找到解决办法。我是不是漏掉了一封推荐信?是否有使用MVC 3或4以及在Mono下运行的Entity Framework 4或6的工作示例项目?

    请在xamarin bugzilla()中归档错误