OpenRasta on Mono

47 views
Skip to first unread message

James Deery

unread,
Dec 5, 2011, 3:45:18 PM12/5/11
to OpenRasta
Hi,

What is the situation with OpenRasta on Mono? Is it supported? I'm
trying to run a simple application with xsp on Mono 2.10.6, but I'm
getting an ObjectDisposedException. The same code runs fine under .NET
on Windows.

I tried to compile OpenRasta myself under Mono, but OpenWrap wasn't
working for me either.

I can provide details on errors if you want them, otherwise I'll just
have to stick to Windows.

James

Sebastien Lambla

unread,
Dec 5, 2011, 8:03:03 PM12/5/11
to open...@googlegroups.com
If you can provide some details about the ObjectDisposedException that'd be great. Hosting on HttpListener works on mono (apparently since 2.10) but under xsp it's untested.

Neil Mosafi

unread,
Dec 5, 2011, 8:07:59 PM12/5/11
to open...@googlegroups.com

I've seen that exception on windows too in my tests actually. The tests keep starting and stopping the host and hitting it with watin tests. it happens very rarely on the build server. Probably a race condition and might be unrelated but thought I'd mention it anyway

Sebastien Lambla

unread,
Dec 6, 2011, 12:48:09 AM12/6/11
to open...@googlegroups.com

Stack trace or it didn’t happen :-P

James Deery

unread,
Dec 6, 2011, 3:58:42 AM12/6/11
to OpenRasta
Stack Trace:
System.ObjectDisposedException: The object was used after being
disposed.  at
System.Collections.Generic.List`1+Enumerator[OpenRasta.Pipeline.ContributorCall].VerifyState
() [0x00000] in <filename unknown>:0   at
System.Collections.Generic.List`1+Enumerator[OpenRasta.Pipeline.ContributorCall].MoveNext
() [0x00000] in <filename unknown>:0   at
OpenRasta.Collections.ResumableIterator`2[OpenRasta.Pipeline.ContributorCall,System.Type].System.Collections.IEnumerator.MoveNext
() [0x00000] in <filename unknown>:0   at
OpenRasta.Pipeline.PipelineRunner.RunCallGraph (ICommunicationContext
context, OpenRasta.Pipeline.PipelineStage stage) [0x00000] in
<filename unknown>:0   at OpenRasta.Pipeline.PipelineRunner.Run
(ICommunicationContext context) [0x00000] in <filename unknown>:0   at
OpenRasta.Hosting.HostManager
+<>c__DisplayClass4.<HandleHostIncomingRequestReceived>b__3 ()
[0x00000] in <filename unknown>:0   at
OpenRasta.Hosting.HostManager.ThreadScopedAction (System.Action
action) [0x00000] in <filename unknown>:0   at
OpenRasta.Hosting.HostManager.HandleHostIncomingRequestReceived
(System.Object sender, OpenRasta.Hosting.IncomingRequestEventArgs e)
[0x00000] in <filename unknown>:0   at
OpenRasta.EventHandlerExtensions.Raise[IncomingRequestReceivedEventArgs]
(System.EventHandler`1 handler, System.Object src,
OpenRasta.Hosting.IncomingRequestReceivedEventArgs args) [0x00000] in
<filename unknown>:0   at
OpenRasta.Hosting.AspNet.AspNetHost.RaiseIncomingRequestReceived
(ICommunicationContext context) [0x00000] in <filename unknown>:0   at
OpenRasta.Hosting.AspNet.OpenRastaIntegratedHandler.ProcessRequest
(System.Web.HttpContext context) [0x00000] in <filename unknown>:0  
at OpenRasta.Hosting.AspNet.OpenRastaRewriterHandler.ProcessRequest
(System.Web.HttpContext context) [0x00000] in <filename unknown>:0  
at System.Web.HttpApplication+<Pipeline>c__Iterator6.MoveNext ()
[0x00000] in <filename unknown>:0   at System.Web.HttpApplication.Tick
() [0x00000] in <filename unknown>:0
Version information: Mono Runtime Version: 2.10.6 (tarball Fri Sep 16
00:13:06 EDT 2011); ASP.NET Version: 2.0.50727.1433

James Deery

unread,
Dec 6, 2011, 6:16:09 PM12/6/11
to open...@googlegroups.com
Sorry about the formatting on that, I pasted that in in a rush this morning.

To be clear, when I serve my app with xsp, any request to it gets a 500 response with the following stack trace:

System.ObjectDisposedException: The object was used after being disposed.
at System.Collections.Generic.List`1+Enumerator[OpenRasta.Pipeline.ContributorCall].VerifyState () [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1+Enumerator[OpenRasta.Pipeline.ContributorCall].MoveNext () [0x00000] in <filename unknown>:0
at OpenRasta.Collections.ResumableIterator`2[OpenRasta.Pipeline.ContributorCall,System.Type].System.Collections.IEnumerator.MoveNext () [0x00000] in <filename unknown>:0
at OpenRasta.Pipeline.PipelineRunner.RunCallGraph (ICommunicationContext context, OpenRasta.Pipeline.PipelineStage stage) [0x00000] in <filename unknown>:0
at OpenRasta.Pipeline.PipelineRunner.Run (ICommunicationContext context) [0x00000] in <filename unknown>:0

at OpenRasta.Hosting.HostManager+<>c__DisplayClass4.<HandleHostIncomingRequestReceived>b__3 () [0x00000] in <filename unknown>:0

at OpenRasta.Hosting.HostManager.ThreadScopedAction (System.Action action) [0x00000] in <filename unknown>:0
at OpenRasta.Hosting.HostManager.HandleHostIncomingRequestReceived (System.Object sender, OpenRasta.Hosting.IncomingRequestEventArgs e) [0x00000] in <filename unknown>:0
at OpenRasta.EventHandlerExtensions.Raise[IncomingRequestReceivedEventArgs] (System.EventHandler`1 handler, System.Object src, OpenRasta.Hosting.IncomingRequestReceivedEventArgs args) [0x00000] in <filename unknown>:0
at OpenRasta.Hosting.AspNet.AspNetHost.RaiseIncomingRequestReceived (ICommunicationContext context) [0x00000] in <filename unknown>:0
at OpenRasta.Hosting.AspNet.OpenRastaIntegratedHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at OpenRasta.Hosting.AspNet.OpenRastaRewriterHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at System.Web.HttpApplication+<Pipeline>c__Iterator6.MoveNext () [0x00000] in <filename unknown>:0
at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0

Version information: Mono Runtime Version: 2.10.6 (tarball Fri Sep 16 00:13:06 EDT 2011); ASP.NET Version: 2.0.50727.1433

Is this more likely to be a bug in Mono than the OR code?

Reply all
Reply to author
Forward
0 new messages