[Mono-list] ASP.Net Problem in 2.8.1
Abe Gillespie
abe.gillespie at gmail.com
Mon Nov 22 09:20:14 EST 2010
I'm getting this now:
No access to the given key
Description: HTTP 500. Error processing request.
Stack Trace:
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
If I run a command-line xsp session as root it works fine. I saw that
it needed access to /usr/local/mono/2.8.1/etc/mono/registry where it
created and updates a file named last-btime. I did "chmod o+w -R" on
the registry dir but that didn't seem to help. Now my public site
runs fine but the site behind a login is what breaks; I'm pretty sure
it's something going on with the .Net Recaptcha control I'm using.
Can I fix this by setting up a registry for the apache user? If so, how?
Thanks.
-Abe
More information about the Mono-list
mailing list