[Mono-aspnet-list] MVC 3 - Error on first site hit

Daniel J. Summers daniel.summers.2415 at gmail.com
Fri Apr 8 08:54:02 EDT 2011

I've successfully gotten ASP MVC 3 running with Mono 2.10, using the "bin
deploy" technique described at
http://www.hanselman.com/blog/default.aspx?page=11 (as I write this, the
post is at the top of the page; the permalink seems to be broken).  Once the
app is restarted, the first hit returns an error.  After that, it flies!  :)

But, back to the first error.  (Due to Apache not killing zombie PHP
processes as it should, I'm having to restart my server every 6 hours, so
this is a bigger deal than it might otherwise be.)  The error appears to be
coming out of Microsoft.Web.Infrastructure, one of the bin deployed DLLs; it
appears to be trying to determine if it's been kilbitted (the 8th line down
in the stack trace below).

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 Microsoft.Win32.RegistryKey.OpenSubKey (System.String name)
[0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check)
Microsoft.Win32.RegistryKey:OpenSubKey (string)
  at Microsoft.Web.Infrastructure.RegistryKeyWrapper.OpenSubKey
(System.String name) [0x00000] in <filename unknown>:0
  at Microsoft.Web.Infrastructure.KillBitHelper.GetKillBittedVersions
() [0x00000] in <filename unknown>:0
  at Microsoft.Web.Infrastructure.KillBitHelper.IsThisAssemblyKillBitted
() [0x00000] in <filename unknown>:0
  at Microsoft.Web.Infrastructure.KillBitHelper.ThrowIfKillBitIsSet ()
[0x00000] in <filename unknown>:0
  at Microsoft.Web.Infrastructure.ModuleInitializer+CriticalInitializer.CheckKillBit
() [0x00000] in <filename unknown>:0
  at Microsoft.Web.Infrastructure.ModuleInitializer+CriticalInitializer.Initialize
() [0x00000] in <filename unknown>:0
  at Microsoft.Web.Infrastructure.ModuleInitializer.Initialize ()
[0x00000] in <filename unknown>:0
  at <Module>..cctor () [0x00000] in <filename unknown>:0

Any ideas?

*Daniel J. Summers*
*Owner, DJS Consulting*
E-mail <daniel.summers.2415 at gmail.com> • Website <http://djs-consulting.com>
 • Support <http://support.djs-consulting.com> • Tech

GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M--
V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110408/39aeb023/attachment-0001.html 

More information about the Mono-aspnet-list mailing list