[Mono-bugs] [Bug 609632] New: Bug with System.Environment.InternalGetFolderPath found using MVC 2 on Mono SVN

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 27 16:51:30 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=609632

http://bugzilla.novell.com/show_bug.cgi?id=609632#c0


           Summary: Bug with System.Environment.InternalGetFolderPath
                    found using MVC 2 on Mono SVN
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: shaun at golfsigma.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=365302)
 --> (http://bugzilla.novell.com/attachment.cgi?id=365302)
Sample project (default MVC 2 project) and error.log

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; .NET4.0C; .NET4.0E)

Getting an error when trying to use web authentication in MVC default
application  (System.Web.Security.MembershipProvider).

Stacktrace:

  at (wrapper managed-to-native) System.Environment.internalGetHome () <IL
0x00006, 0x00048>
  at (wrapper managed-to-native) System.Environment.internalGetHome () <IL
0x00006, 0x00048>
  at System.Environment.InternalGetFolderPath
(System.Environment/SpecialFolder) [0x00000] in
/mnt/trunk/mono/mcs/class/corlib/System/Environment.cs:518
  at System.Environment.GetFolderPath
(System.Environment/SpecialFolder,System.Environment/SpecialFolderOption)
[0x00018] in /mnt/trunk/mono/mcs/class/corlib/System/Environment.cs:$
  at System.Environment.GetFolderPath (System.Environment/SpecialFolder)
[0x00000] in /mnt/trunk/mono/mcs/class/corlib/System/Environment.cs:447
  at Microsoft.Win32.KeyHandler.get_UserStore () [0x00000] in
/mnt/trunk/mono/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:563
  at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey,bool)
[0x00081] in
/mnt/trunk/mono/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:251
  at Microsoft.Win32.UnixRegistryApi.OpenSubKey
(Microsoft.Win32.RegistryKey,string,bool) [0x00000] in
/mnt/trunk/mono/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:613
  at Microsoft.Win32.RegistryKey.OpenSubKey (string,bool) [0x0001e] in
/mnt/trunk/mono/mcs/class/corlib/Microsoft.Win32/RegistryKey.cs:241
  at (wrapper remoting-invoke-with-check)
Microsoft.Win32.RegistryKey.OpenSubKey (string,bool) <IL 0x00034, 0x00088>
  at System.Web.Configuration.MachineKeyRegistryStorage.OpenRegistryKey
(string,bool) [0x00024] in
/mnt/trunk/mono/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeyRegis$
  at System.Web.Configuration.MachineKeyRegistryStorage.GetKey
(System.Web.Configuration.MachineKeyRegistryStorage/KeyType) [0x0004a] in
/mnt/trunk/mono/mcs/class/System.Web/System$
  at System.Web.Configuration.MachineKeyRegistryStorage.Retrieve
(System.Web.Configuration.MachineKeyRegistryStorage/KeyType) [0x00000] in
/mnt/trunk/mono/mcs/class/System.Web/Syst$
  at System.Web.Configuration.MachineKeySectionUtils.AutoGenKeys () [0x0000a]
in
/mnt/trunk/mono/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeySectionUtils.cs:55
  at System.Web.Configuration.MachineKeySection..cctor () [0x000eb] in
/mnt/trunk/mono/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeySection.cs:74
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <IL 0x0001b, 0x00049>
  at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke
(System.Reflection.MonoCMethod*,object,object[],System.Exception&) <IL 0x00016,
0x00069>
  at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke
(System.Reflection.MonoCMethod*,object,object[],System.Exception&) <IL 0x00016,
0x00069>
  at System.Reflection.MonoCMethod.Invoke
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
[0x00119] in /mnt/trunk/mono/mc$
  at System.Reflection.MonoCMethod.Invoke
(System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
[0x00000] in /mnt/trunk/mono/mcs/class$
  at System.Reflection.ConstructorInfo.Invoke (object[]) [0x0000e] in
/mnt/trunk/mono/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:62
  at System.Activator.CreateInstance (System.Type,bool) [0x000b5] in
/mnt/trunk/mono/mcs/class/corlib/System/Activator.cs:333
  at System.Configuration.ConfigInfo.CreateInstance () [0x00023] in
/mnt/trunk/mono/mcs/class/System.Configuration/System.Configuration/ConfigInfo.cs:51
  at System.Configuration.SectionInfo.CreateInstance () [0x00000] in
/mnt/trunk/mono/mcs/class/System.Configuration/System.Configuration/SectionInfo.cs:63
  at System.Configuration.Configuration.GetSectionInstance
(System.Configuration.SectionInfo,bool) [0x00022] in
/mnt/trunk/mono/mcs/class/System.Configuration/System.Configuration/$
  at System.Configuration.ConfigurationSectionCollection.get_Item (string)
[0x00032] in
/mnt/trunk/mono/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionColl$
  at System.Configuration.Configuration.GetSection (string) [0x0006a] in
/mnt/trunk/mono/mcs/class/System.Configuration/System.Configuration/Configuration.cs:249
  at System.Web.Configuration.WebConfigurationManager.GetSection
(string,string,System.Web.HttpContext) [0x001e1] in
/mnt/trunk/mono/mcs/class/System.Web/System.Web.Configuration_2$
  at System.Web.Configuration.WebConfigurationManager.GetSection
(string,string) [0x00000] in
/mnt/trunk/mono/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationMana$
  at System.Web.Security.SqliteMembershipProvider.Initialize
(string,System.Collections.Specialized.NameValueCollection) [0x002c2] in
/mnt/trunk/mono/mcs/class/System.Web/System.We$
  at System.Web.Configuration.ProvidersHelper.InstantiateProvider
(System.Configuration.ProviderSettings,System.Type) [0x00063] in
/mnt/trunk/mono/mcs/class/System.Web/System.Web.C$
  at System.Web.Configuration.ProvidersHelper.InstantiateProviders
(System.Configuration.ProviderSettingsCollection,System.Configuration.Provider.ProviderCollection,System.Type)
[0$
  at System.Web.Security.Membership..cctor () [0x0001a] in
/mnt/trunk/mono/mcs/class/System.Web/System.Web.Security/Membership.cs:107
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <IL 0x0001b, 0x00049>
  at TestMvcAuthentication.Models.AccountMembershipService..ctor
(System.Web.Security.MembershipProvider) <IL 0x0001a, 0xffffffff>
  at TestMvcAuthentication.Models.AccountMembershipService..ctor
(System.Web.Security.MembershipProvider) <IL 0x0000e, 0x00027>
  at TestMvcAuthentication.Models.AccountMembershipService..ctor () <IL
0x00002, 0x0000f>




Reproducible: Always

Steps to Reproduce:
1. Create sample MVC 2 web application
2. Compile and publish
3. visit the projects page and then click "Log On" link
Actual Results:  
See full stact trace in details


Linux version 2.6.32-21-server (buildd at yellow) (gcc version 4.4.3 (Ubuntu
4.4.3-4ubuntu5) ) #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010

Mono JIT compiler version 2.7 (/trunk/mono r158056 Thu May 27 19:58:35 UTC
2010)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC and Parallel Mark)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          debugger softdebug
        LLVM supported

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list