davidebbo / WebActivator

Apache License 2.0
242 stars 49 forks source link

Need a Mono Version of WebActivator #9

Closed johnjelinek closed 11 years ago

johnjelinek commented 11 years ago

I would love to have WebActivator use Mono's version of Microsoft.Web.Infrastructure so I don't get a 500 at runtime when developing with MonoDevelop.

johnjelinek commented 11 years ago

Note: this is the current problem with trying to implement WebActivator in Mono

Server Error in '/' Application

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 :0 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) [0x00000] in :0 at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyname, Boolean writable) [0x00000] in :0 at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean writable) [0x00000] in :0 at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name) [0x00000] in :0 at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:OpenSubKey (string) at Microsoft.Web.Infrastructure.RegistryKeyWrapper.OpenSubKey (System.String name) [0x00000] in :0 at Microsoft.Web.Infrastructure.KillBitHelper.GetKillBittedVersions () [0x00000] in :0 at Microsoft.Web.Infrastructure.KillBitHelper.IsThisAssemblyKillBitted () [0x00000] in :0 at Microsoft.Web.Infrastructure.KillBitHelper.ThrowIfKillBitIsSet () [0x00000] in :0 at Microsoft.Web.Infrastructure.ModuleInitializer+CriticalInitializer.CheckKillBit () [0x00000] in :0 at Microsoft.Web.Infrastructure.ModuleInitializer+CriticalInitializer.Initialize () [0x00000] in :0 at Microsoft.Web.Infrastructure.ModuleInitializer.Initialize () [0x00000] in :0 at ..cctor () [0x00000] in :0 Version information: Mono Runtime Version: 2.10.9 (tarball Mon May 7 20:25:51 EDT 2012); ASP.NET Version: 4.0.30319.1

davidebbo commented 11 years ago

I'd need someone with Mono experience to help me understand this. Why isn't Mono's version compatible with the original? Usually things just work, no?

If there is something that can be done that makes Mono work without breaking any .NET scenarios, I'm happy to see it happen.

johnjelinek commented 11 years ago

I'm not a mono expert, but I think that if you make a build that depends on this version of Microsoft.Web.Infrastructure then perhaps that might resolve the problem.

davidfowl commented 11 years ago

@johnjelinek is the mono version of MWI compatible with everything else that depends on MWI? Is it binary compatible? Is there a nuget package for it?

davidebbo commented 11 years ago

Closing for lack of information. I'm all for making this work on Mono if that's possible, but there needs to be a Mono expert driving this change.