asp.net-mvc – 在空项目中缺少类型Mono.Web.Util.RoleManagerSectionMapper

前端之家收集整理的这篇文章主要介绍了asp.net-mvc – 在空项目中缺少类型Mono.Web.Util.RoleManagerSectionMapper前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经设置了最新的Mono(3.4.1)和 Git的最新XSP,并对它们进行了编译. mono -V打印以下内容
  1. main@zombie# mono -V
  2. Mono JIT compiler version 3.4.1 (master/89e0b25 Fri May 16 18:52:44 CEST 2014)
  3. Copyright (C) 2002-2014 Novell,Inc,Xamarin Inc and Contributors. www.mono-project.com
  4. TLS: __thread
  5. SIGSEGV: altstack
  6. Notifications: epoll
  7. Architecture: amd64
  8. Disabled: none
  9. Misc: softdebug
  10. LLVM: supported,not enabled.
  11. GC: sgen

现在我在Visual Studio 2013中创建了一个示例ASP.NET MVC项目.它包含一些基本页面.我选择使用非常简单的例子没有验证的东西.在Windows上运行.在Mono上,出现以下错误

  1. System.TypeLoadException
  2. Could not load type 'Mono.Web.Util.RoleManagerSectionMapper,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a'.
  3.  
  4. Description: HTTP 500.Error processing request.
  5.  
  6. Details: Non-web exception. Exception origin (name of application or object): mscorlib.
  7. Exception stack trace:
  8. at (wrapper managed-to-native) System.Type:internal_from_name (string,bool,bool)
  9. at System.Type.GetType (System.String typeName,Boolean throwOnError) [0x00000] in <filename unknown>:0
  10. at Mono.Web.Util.SettingsMapping.get_MapperType () [0x00000] in <filename unknown>:0
  11. at Mono.Web.Util.SettingsMapping.MapSection (System.Object input,System.Type type) [0x00000] in <filename unknown>:0
  12. at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input,System.Type type) [0x00000] in <filename unknown>:0
  13. at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input) [0x00000] in <filename unknown>:0
  14. at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName,System.String path,System.Web.HttpContext context) [0x00000] in <filename unknown>:0
  15. at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0
  16. at System.Web.Security.RoleManagerModule.Init (System.Web.HttpApplication app) [0x00000] in <filename unknown>:0
  17. at System.Web.Configuration.HttpModulesSection.LoadModules (System.Web.HttpApplication app) [0x00000] in <filename unknown>:0
  18. at System.Web.HttpApplication.InitOnce (Boolean full_init) [0x00000] in <filename unknown>:0

我试过的是搜索整个项目的RoleManagerSectionMapper – 没有结果.

解决方法

猜你在找的asp.Net相关文章