Vidarls/Simple.Data.Mysql — Issue #8: Fail to run with MySQL
Author: fekberg
Created: 2011-12-14 20:12:43+00:00
State: open

When trying to run a asp.net mvc 3 web site with the following:
* Simple.Data compiled for mono 2.10.x
* mysql.data for mono
* Simple.Data.Mysql compiled against the above Simple.data

I get the following error message:

[code]
(info) Auto generated encryption keys not saved: System.Security.SecurityException: No access to the given key
at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir, Boolean is_volatile) [0x00057] in /home/fusonic/mono-src/mono/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:138
at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir) [0x00000] in :0
at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey, Boolean createNonExisting) [0x0009d] in /home/fusonic/mono-src/mono/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:401
at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyname, Boolean writable) [0x00000] in /home/fusonic/mono-src/mono/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:842
at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean writable) [0x0001e] in /home/fusonic/mono-src/mono/mcs/class/corlib/Microsoft.Win32/RegistryKey.cs:278
at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:OpenSubKey (string,bool)
at System.Web.Configuration.MachineKeyRegistryStorage.OpenRegistryKey (System.String path, Boolean write) [0x00024] in /home/fusonic/mono-src/mono/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:101
at System.Web.Configuration.MachineKeyRegistryStorage.Store (System.Byte[] buf, KeyType kt) [0x00045] in /home/fusonic/mono-src/mono/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:136
(info) Auto generated encryption keys not saved: System.Security.SecurityException: No access to the given key
at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir, Boolean is_volatile) [0x00057] in /home/fusonic/mono-src/mono/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:138
at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir) [0x00000] in :0
at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey, Boolean createNonExisting) [0x0009d] in /home/fusonic/mono-src/mono/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:401
at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyname, Boolean writable) [0x00000] in /home/fusonic/mono-src/mono/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:842
at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean writable) [0x0001e] in /home/fusonic/mono-src/mono/mcs/class/corlib/Microsoft.Win32/RegistryKey.cs:278
at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:OpenSubKey (string,bool)
at System.Web.Configuration.MachineKeyRegistryStorage.OpenRegistryKey (System.String path, Boolean write) [0x00024] in /home/fusonic/mono-src/mono/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:101
at System.Web.Configuration.MachineKeyRegistryStorage.Store (System.Byte[] buf, KeyType kt) [0x00045] in /home/fusonic/mono-src/mono/mcs/class/System.Web/System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:136
[/code]

And then the web-site displays this:

[code]
"No ADO Provider found."

Simple.Data.SimpleDataException: No ADO Provider found.
at Simple.Data.MefHelper.Compose (string) <0x000df>
at Simple.Data.AdapterFactory.DoCreate (string,System.Collections.Generic.IEnumerable`1>)
at Simple.Data.CachingAdapterFactory/c__AnonStorey9.<>m__8 (string)
at System.Collections.Concurrent.ConcurrentDictionary`2/c__AnonStorey40.<>m__38 () <0x00035>
at (wrapper delegate-invoke) .invoke_KeyValuePair`2__this__ ()
at System.Collections.Concurrent.SplitOrderedList`2>.ListInsert (System.Collections.Concurrent.SplitOrderedList`2/Node>,System.Collections.Concurrent.SplitOrderedList`2/Node>,System.Collections.Concurrent.SplitOrderedList`2/Node>&,System.Func`1>) [0x00065] in /home/fusonic/mono-src/mono/mcs/class/corlib/System.Collections.Concurrent/SplitOrderedList.cs:378
at System.Collections.Concurrent.SplitOrderedList`2>.InsertInternal (uint,string,System.Collections.Generic.KeyValuePair`2,System.Func`1>,System.Collections.Concurrent.SplitOrderedList`2/Node>&) [0x0002d] in /home/fusonic/mono-src/mono/mcs/class/corlib/System.Collections.Concurrent/SplitOrderedList.cs:141
at System.Collections.Concurrent.SplitOrderedList`2>.InsertOrGet (uint,string,System.Collections.Generic.KeyValuePair`2,System.Func`1>) [0x00000] in /home/fusonic/mono-src/mono/mcs/class/corlib/System.Collections.Concurrent/SplitOrderedList.cs:127
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd (string,System.Func`2) <0x00164>
at Simple.Data.CachingAdapterFactory.Create (string,System.Collections.Generic.IEnumerable`1>)
at Simple.Data.AdapterFactory.Create (string,object)
at Simple.Data.DatabaseOpener.OpenConnectionMethod (string)
at Simple.Data.DatabaseOpener.OpenConnection (string)
at Simple.Data.Database.OpenConnection (string)
at CsharpTutor.Controllers.HomeController.Index ()
at (wrapper dynamic-method) object.lambda_method (System.Runtime.CompilerServices.Closure,System.Web.Mvc.ControllerBase,object[])
at System.Web.Mvc.ActionMethodDispatcher.Execute (System.Web.Mvc.ControllerBase,object[])
at System.Web.Mvc.ReflectedActionDescriptor.Execute (System.Web.Mvc.ControllerContext,System.Collections.Generic.IDictionary`2)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod (System.Web.Mvc.ControllerContext,System.Web.Mvc.ActionDescriptor,System.Collections.Generic.IDictionary`2)
at System.Web.Mvc.ControllerActionInvoker/<>c__DisplayClass15.b__12 ()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter (System.Web.Mvc.IActionFilter,System.Web.Mvc.ActionExecutingContext,System.Func`1)
[/code]

Here is some version information:
Version information: Mono Runtime Version: 2.10.4 (mono-2-10/c6799b1 Mon Aug 22 13:42:45 CEST 2011); ASP.NET Version: 4.0.30319.1