2014-05-16 135 views
13

我已經從Git設置了最新的Mono(3.4.1)和最新的XSP並對它們進行了編譯。 mono -V打印以下內容:空項目中缺少類型Mono.Web.Util.RoleManagerSectionMapper

[email protected]# mono -V 
Mono JIT compiler version 3.4.1 (master/89e0b25 Fri May 16 18:52:44 CEST 2014) 
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com 
    TLS:   __thread 
    SIGSEGV:  altstack 
    Notifications: epoll 
    Architecture: amd64 
    Disabled:  none 
    Misc:   softdebug 
    LLVM:   supported, not enabled. 
    GC:   sgen 

現在我已經創造了在Visual Studio 2013年它包含了一些基本的網頁示例的ASP.NET MVC項目。我選擇了使用非常簡單的示例,而無需身份驗證。在Windows上,它運行。在單聲道,出現以下錯誤:

System.TypeLoadException 
Could not load type 'Mono.Web.Util.RoleManagerSectionMapper, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. 

Description: HTTP 500.Error processing request. 

Details: Non-web exception. Exception origin (name of application or object): mscorlib. 
Exception stack trace: 
    at (wrapper managed-to-native) System.Type:internal_from_name (string,bool,bool) 
    at System.Type.GetType (System.String typeName, Boolean throwOnError) [0x00000] in <filename unknown>:0 
    at Mono.Web.Util.SettingsMapping.get_MapperType() [0x00000] in <filename unknown>:0 
    at Mono.Web.Util.SettingsMapping.MapSection (System.Object input, System.Type type) [0x00000] in <filename unknown>:0 
    at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input, System.Type type) [0x00000] in <filename unknown>:0 
    at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input) [0x00000] in <filename unknown>:0 
    at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path, System.Web.HttpContext context) [0x00000] in <filename unknown>:0 
    at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 
    at System.Web.Security.RoleManagerModule.Init (System.Web.HttpApplication app) [0x00000] in <filename unknown>:0 
    at System.Web.Configuration.HttpModulesSection.LoadModules (System.Web.HttpApplication app) [0x00000] in <filename unknown>:0 
    at System.Web.HttpApplication.InitOnce (Boolean full_init) [0x00000] in <filename unknown>:0 

我想什麼是搜索RoleManagerSectionMapper整個項目 - 沒有結果。

+0

你編譯從主(GIT)單呢? (這是不明確的,如果你只從Git獲得XSP,或者也是單聲道) – knocte

+0

是的,都來自git。 –

+0

我在版本3.4.0中從tarball重新編譯了Mono。出現相同的錯誤。 –

回答