[Mono-aspnet-list] Mono trunk, Membership provider, System.Environment.internalGetHome()

Nathan Bridgewater nathan at integratedwebsystems.com
Fri Jun 11 10:43:30 EDT 2010


Hello All,

I installed a snapshot from a couple days ago (June 8, 2010), and I'm having
an issue with asp.net when I run membership provider (using MySql.Web mono
build for 6.22).

This application in particular is an MVC 1.0 application that used to work
100% on the ubuntu packaged install of 6.4.4.  I was setting up a sandbox to
test mono trunk with MVC2 and some of its features that are broken in 6.4.4.

This application also works fine (with data access and controller routes)
until I hit any page that uses membership. When it constructs the membership
provider, I get this dump in the error log.

Could this be as simple as missing machine configuration?   Are there any
post-install steps I should have done when installing a snapshot?  The
exception occurs when it is loading configuration for the membership
provider.

System.Web.Security/
Membership.cs:114 but eventually leads to an external function
internalGetHome().

Thanks in advance.  Below is part of the apache error log.


#MONO VERSION#
Mono JIT compiler version 20100608 (tarball Wed Jun  9 12:49:43 CDT 2010)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC and Parallel Mark)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
        Misc:          debugger softdebug
        LLVM supported

gmcs --version
Mono C# compiler version 2010.608.0.0



#Apache ERROR.LOG#

> [Thu Jun 10 13:12:56 2010] [notice] Apache/2.2.14 (Ubuntu) mod_mono/2.7
> configured -- resuming normal operations
> mod-mono-server2
> mod-mono-server2
> Listening on: /tmp/mod_mono_server_diabolos
> Root directory: /
> Stacktrace:
>
>   at (wrapper managed-to-native) System.Environment.internalGetHome ()
> <0x00004>
>   at (wrapper managed-to-native) System.Environment.internalGetHome ()
> <0x00004>
>   at System.Environment.InternalGetFolderPath
> (System.Environment/SpecialFolder) [0x00000] in
> /home/nathan/mono/mono-20100608/mcs/class/corlib/System/Environment.cs:518
>   at System.Environment.GetFolderPath
> (System.Environment/SpecialFolder,System.Environment/SpecialFolderOption)
> [0x00018] in
> /home/nathan/mono/mono-20100608/mcs/class/corlib/System/Environment.cs:462
>   at System.Environment.GetFolderPath (System.Environment/SpecialFolder)
> [0x00000] in
> /home/nathan/mono/mono-20100608/mcs/class/corlib/System/Environment.cs:447
>   at Microsoft.Win32.KeyHandler.get_UserStore () [0x00000] in
> /home/nathan/mono/mono-20100608/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:563
>   at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey,bool)
> [0x00081] in
> /home/nathan/mono/mono-20100608/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:251
>   at Microsoft.Win32.UnixRegistryApi.OpenSubKey
> (Microsoft.Win32.RegistryKey,string,bool) [0x00000] in
> /home/nathan/mono/mono-20100608/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:613
>   at Microsoft.Win32.RegistryKey.OpenSubKey (string,bool) [0x0001e] in
> /home/nathan/mono/mono-20100608/mcs/class/corlib/Microsoft.Win32/RegistryKey.cs:241
>   at (wrapper remoting-invoke-with-check)
> Microsoft.Win32.RegistryKey.OpenSubKey (string,bool) <IL 0x00034, 0x00064>
>   at System.Web.Configuration.MachineKeyRegistryStorage.OpenRegistryKey
> (string,bool) [0x00024] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:125
>   at System.Web.Configuration.MachineKeyRegistryStorage.GetKey
> (System.Web.Configuration.MachineKeyRegistryStorage/KeyType) [0x0004a] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:102
>   at System.Web.Configuration.MachineKeyRegistryStorage.Retrieve
> (System.Web.Configuration.MachineKeyRegistryStorage/KeyType) [0x00000] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:66
>   at System.Web.Configuration.MachineKeySectionUtils.AutoGenKeys ()
> [0x0000a] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeySectionUtils.cs:55
>   at System.Web.Configuration.MachineKeySection..cctor () [0x000eb] in
> /home/nathan/mono/mono-20100608/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 0x00015, 0x0002a>
>   at (wrapper managed-to-native)
> System.Reflection.MonoCMethod.InternalInvoke
> (System.Reflection.MonoCMethod*,object,object[],System.Exception&) <0x00004>
>   at (wrapper managed-to-native)
> System.Reflection.MonoCMethod.InternalInvoke
> (System.Reflection.MonoCMethod*,object,object[],System.Exception&) <0x00004>
>   at System.Reflection.MonoCMethod.Invoke
> (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
> [0x00119] in
> /home/nathan/mono/mono-20100608/mcs/class/corlib/System.Reflection/MonoMethod.cs:523
>   at System.Reflection.MonoCMethod.Invoke
> (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
> [0x00000] in
> /home/nathan/mono/mono-20100608/mcs/class/corlib/System.Reflection/MonoMethod.cs:538
>   at System.Reflection.ConstructorInfo.Invoke (object[]) [0x0000e] in
> /home/nathan/mono/mono-20100608/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:62
>   at System.Activator.CreateInstance (System.Type,bool) [0x000b5] in
> /home/nathan/mono/mono-20100608/mcs/class/corlib/System/Activator.cs:333
>   at System.Configuration.ConfigInfo.CreateInstance () [0x00023] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Configuration/System.Configuration/ConfigInfo.cs:51
>   at System.Configuration.SectionInfo.CreateInstance () [0x00000] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Configuration/System.Configuration/SectionInfo.cs:63
>   at System.Configuration.Configuration.GetSectionInstance
> (System.Configuration.SectionInfo,bool) [0x00022] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Configuration/System.Configuration/Configuration.cs:269
>   at System.Configuration.ConfigurationSectionCollection.get_Item (string)
> [0x00032] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionCollection.cs:68
>   at System.Configuration.Configuration.GetSection (string) [0x0006a] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Configuration/System.Configuration/Configuration.cs:249
>   at System.Web.Configuration.WebConfigurationManager.GetSection
> (string,string,System.Web.HttpContext) [0x001e1] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:493
>   at System.Web.Configuration.WebConfigurationManager.GetSection (string)
> [0x00006] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:400
>   at System.Web.Security.Membership..cctor () [0x00077] in
> /home/nathan/mono/mono-20100608/mcs/class/System.Web/System.Web.Security/Membership.cs:114
>   at (wrapper runtime-invoke) object.runtime_invoke_void
> (object,intptr,intptr,intptr) <IL 0x00015, 0x0002a>
>   at IWS.SiteManager.Web.Controllers.AccountMembershipService..ctor
> (System.Web.Security.MembershipProvider) <IL 0x0001a, 0xffffffff>
>   at IWS.SiteManager.Web.Controllers.AccountMembershipService..ctor
> (System.Web.Security.MembershipProvider) <IL 0x0000e, 0x00016>
>   at IWS.SiteManager.Web.Controllers.AccountMembershipService..ctor () <IL
> 0x00002, 0x00012>
>   at IWS.SiteManager.Web.Controllers.AccountController..ctor
> (IWS.SiteManager.Web.Controllers.IFormsAuthentication,IWS.SiteManager.Web.Controllers.IMembershipService)
> <IL 0x0001f, 0x00068>
>   at IWS.SiteManager.Web.Controllers.AccountController..ctor () <IL
> 0x00003, 0x00014>
>
> Native stacktrace:
>
>     /usr/local/bin/mono() [0x80d7414]
>     /usr/local/bin/mono() [0x8116b0b]
>     [0x63c410]
>     /usr/local/bin/mono() [0x8154d4f]
>
> [Thu Jun 10 13:13:57 2010] [error] (70014)End of file found: read_data
> failed
> [Thu Jun 10 13:13:57 2010] [error] Command stream corrupted, last command
> was 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20100611/871a366e/attachment-0001.html 


More information about the Mono-aspnet-list mailing list