2014-05-16 15 views
13

Ho configurato l'ultimo Mono (3.4.1) e l'ultimo XSP di Git e li ho compilati. mono -V stampa il seguente:Tipo mancante Mono.Web.Util.RoleManagerSectionMapper nel progetto vuoto

[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 

Ora ho creato un campione progetto ASP.NET MVC in Visual Studio 2013. Esso contiene alcune pagine di base. Ho scelto di utilizzare l'esempio molto semplice senza elementi di autenticazione. Su Windows, funziona. Su Mono, viene visualizzato il seguente errore:

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 

Quello che ho cercato è quello di cercare l'intero progetto per RoleManagerSectionMapper - non ha prodotto risultati.

+0

lo si compila mono da master (Git) come bene? (è ambiguo se hai solo XSP da git, o anche mono) – knocte

+0

Sì, entrambi da git. –

+0

Ho ricompilato Mono da tarball nella versione 3.4.0. Lo stesso errore appare. –

risposta

Problemi correlati