First, I apologize in case this off topic. I am getting an exception -- not from my application but from the .NET Runtime. I think it might have to do with how I am using UnitOfWorkApplication. The error appears only under load, so it's likely a concurrency/threading problem. I am using UnitOfWorkApplciation in a WCF service host application, along with Castle.Facilities.WcfIntegration.
Here is the stack trace from the event log entry: FailFast was invoked. Message: ICallContextInitializer.BeforeInvoke threw an exception of type Castle.ActiveRecord.Framework.Scopes.ScopeMachineryException: Tried to unregister a scope that is not the active one Stack Trace: at System.ServiceModel.Diagnostics.ExceptionUtility.TraceFailFast(String message, EventLogger logger) at System.ServiceModel.Diagnostics.ExceptionUtility.TraceFailFast (String message) at System.ServiceModel.DiagnosticUtility.FailFast(String message) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.UninitializeCallContextCore (MessageRpc& rpc) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.UninitializeCallContext (MessageRpc& rpc) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin (MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5 (MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4 (MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3 (MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2 (MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1 (MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.Dispatch (MessageRpc& rpc, Boolean isOperationContextSet) at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump (RequestContext request, Boolean cleanThread, OperationContext currentOperationContext) at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest (RequestContext request, OperationContext currentOperationContext) at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump (IAsyncResult result) at System.ServiceModel.Dispatcher.ChannelHandler.OnContinueAsyncReceive (Object state) at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke2 () at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.OnSecurityContextCallback (Object o) at System.Security.SecurityContext.Run(SecurityContext securityContext, ContextCallback callback, Object state) at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke () at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ProcessCallbacks () at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.CompletionCallback (Object state) at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ScheduledOverlapped.IOCallback (UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped) at System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptionFrame (UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback (UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP) I'm a bit at a loss of how to track this one down. Any ideas? What else can I tell you? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en -~----------~----~----~----~------~----~------~--~---
