[Mono-aspnet-list] SecurityException in apache2 error.log

dpr richard at powell.ws
Sun May 22 18:24:10 EDT 2011


Hi all,

I've been trying to get mono 2.10.1 working for an ASP.NET site of mine and
I'm having some issues. Here's a snippet from my apache2 error.log:

[Sun May 22 15:16:51 2011] [notice] Apache/2.2.14 (Ubuntu) mod_mono/2.10
PHP/5.3.2-1ubuntu4.9 with Suhosin-Patch configured -- resuming normal
operations
Listening on: /tmp/mod_mono_server_global
Root directory: /
Listening on: /tmp/mod_mono_server_global
Root directory: /
Error: Address already in use
mod-mono-server4
mod-mono-server4
Listening on: /tmp/mod_mono_server_surreal.powell.ws
Root directory: /home/richard/barkportaltest
[Sun May 22 15:17:42 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in
/etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Sun May 22 15:17:44 2011] [notice] Apache/2.2.14 (Ubuntu) mod_mono/2.10
PHP/5.3.2-1ubuntu4.9 with Suhosin-Patch configured -- resuming normal
operations
Listening on: /tmp/mod_mono_server_global
Root directory: /
Listening on: /tmp/mod_mono_server_global
Root directory: /
Error: Address already in use
mod-mono-server4
mod-mono-server4
Listening on: /tmp/mod_mono_server_surreal.powell.ws
Root directory: /home/richard/barkportaltest
(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) [0x00000] in <filename
unknown>:0
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey,
System.String basedir) [0x00000] in <filename unknown>:0
  at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey,
Boolean createNonExisting) [0x00000] in <filename unknown>:0
  at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey
rkey, System.String keyname, Boolean writable) [0x00000] in <filename
unknown>:0
  at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean
writable) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check)
Microsoft.Win32.RegistryKey:OpenSubKey (string,bool)
  at System.Web.Configuration.MachineKeyRegistryStorage.OpenRegistryKey
(System.String path, Boolean write) [0x00000] in <filename unknown>:0
  at System.Web.Configuration.MachineKeyRegistryStorage.Store (System.Byte[]
buf, KeyType kt) [0x00000] in <filename unknown>:0
(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) [0x00000] in <filename
unknown>:0
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey,
System.String basedir) [0x00000] in <filename unknown>:0
  at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey,
Boolean createNonExisting) [0x00000] in <filename unknown>:0
  at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey
rkey, System.String keyname, Boolean writable) [0x00000] in <filename
unknown>:0
  at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean
writable) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check)
Microsoft.Win32.RegistryKey:OpenSubKey (string,bool)
  at System.Web.Configuration.MachineKeyRegistryStorage.OpenRegistryKey
(System.String path, Boolean write) [0x00000] in <filename unknown>:0
  at System.Web.Configuration.MachineKeyRegistryStorage.Store (System.Byte[]
buf, KeyType kt) [0x00000] in <filename unknown>:0
(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) [0x00000] in <filename
unknown>:0
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey,
System.String basedir) [0x00000] in <filename unknown>:0
  at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey,
Boolean createNonExisting) [0x00000] in <filename unknown>:0
  at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey
rkey, System.String keyname, Boolean writable) [0x00000] in <filename
unknown>:0
  at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean
writable) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check)
Microsoft.Win32.RegistryKey:OpenSubKey (string,bool)
  at System.Web.Configuration.MachineKeyRegistryStorage.OpenRegistryKey
(System.String path, Boolean write) [0x00000] in <filename unknown>:0
  at System.Web.Configuration.MachineKeyRegistryStorage.Store (System.Byte[]
buf, KeyType kt) [0x00000] in <filename unknown>:0
(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) [0x00000] in <filename
unknown>:0
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey,
System.String basedir) [0x00000] in <filename unknown>:0
  at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey,
Boolean createNonExisting) [0x00000] in <filename unknown>:0
  at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey
rkey, System.String keyname, Boolean writable) [0x00000] in <filename
unknown>:0
  at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean
writable) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check)
Microsoft.Win32.RegistryKey:OpenSubKey (string,bool)
  at System.Web.Configuration.MachineKeyRegistryStorage.OpenRegistryKey
(System.String path, Boolean write) [0x00000] in <filename unknown>:0
  at System.Web.Configuration.MachineKeyRegistryStorage.Store (System.Byte[]
buf, KeyType kt) [0x00000] in <filename unknown>:0

I read on a few other forums/websites that setting the environment variable
MONO_REGISTRY_PATH should fix the issue, but I've tried to set that in two
different places (in the httpd config via MonoSetEnv as well as by editing
the "mod_mono_server" file and adding an export) and yet it's still giving
me this same issue. The directory I'm pointing it to is owned by www-data
which is the same user apache is running under.

If someone could help that would be great!

Thanks,
-Richard.

--
View this message in context: http://mono.1490590.n4.nabble.com/SecurityException-in-apache2-error-log-tp3542893p3542893.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list