我正在尝试在 Mono 2.10.8.1 之上托管一个 ASP.NET MVC4 RC 项目。首次访问该应用程序时出现以下异常:
Missing method System.Web.Security.FormsAuthentication::get_IsEnabled() in assembly /usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll, referenced in assembly /tmp/root-temp-aspnet-0/eaee30a1/assembly/shadow/5cf10065/40974e7d_1c664e18_00000001/System.Web.Http.WebHost.dll
根据http://www.mono-project.com/Compatibility这应该在 Mono 2.10.8 中实现。Microsoft 将该属性列为 .NET Framework 4.0:http: //msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.isenabled.aspx
是否有某种解决方法,或者目前无法在 Mono 上托管 MVC4?
我应该注意,在 Apache2 上使用 XSP4 和 mod_mono 时我都遇到了这个问题。
单声道版本如下:
Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-1~dhx1~lucid1)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)