This is a migrated thread and some comments may be shown as answers.
Unable to connect OA Profiler to cassini server
1 Answer 23 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jonathan
Top achievements
Rank 1
Jonathan asked on 22 May 2012, 02:54 PM
Hi, I'm trying to connect the OpenAccess profiler to an instance of the Visual Studio Cassini server using the following article as reference: http://www.telerik.com/help/openaccess-orm/openaccess-profiler-how-to-configure-project-real-time-profiling.html. It's running on port 60518 on localhost and connection strings are defined in a separate connectionStrings.config file within one of multiple projects in the solution. I'm starting the profiler service in the Page_Load method of the master page and In the profiler connection dialog I specify the following:

Host: Localhost
Port: 60518
Connection Name: SQLConn

Using OpenAccess version 2012.1.301.2

When I "Test Connection" I get the error: "Expected record type 'PreambleAck', found '72'."

If i simply try to connect then the Cassini server instance dies with the following error reported in the windows event viewer:
-----------------------------------------------------------------------------------
An unhandled exception occurred and the process was terminated.

Application ID: 4dffc227

Process ID: 8124

Exception: System.Runtime.FatalException

Message: Object reference not set to an instance of an object.

StackTrace:    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(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.OnAsyncReceiveComplete(IAsyncResult result)
   at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
   at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
   at System.Runtime.InputQueue`1.AsyncQueueReader.Set(Item item)
   at System.Runtime.InputQueue`1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread)
   at System.Runtime.InputQueue`1.EnqueueAndDispatch(T item, Action dequeuedCallback, Boolean canDispatchOnThisThread)
   at System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType item, Action dequeuedCallback, Boolean canDispatchOnThisThread)
   at System.ServiceModel.Channels.TcpReplyChannelListener.System.ServiceModel.Channels.ISingletonChannelListener.ReceiveRequest(RequestContext requestContext, Action callback, Boolean canDispatchOnThisThread)
   at System.ServiceModel.Channels.ConnectionDemuxer.OnSingletonPreambleKnown(ServerSingletonPreambleConnectionReader serverSingletonPreambleReader)
   at System.ServiceModel.Channels.ServerSingletonPreambleConnectionReader.ReadAndDispatch()
   at System.ServiceModel.Channels.ServerSingletonPreambleConnectionReader.StartReading(Action`1 viaDelegate, TimeSpan timeout)
   at System.ServiceModel.Channels.ConnectionDemuxer.OnSingletonConnection(IConnection connection, Action connectionDequeuedCallback, Int64 streamPosition, Int32 offset, Int32 size, TimeSpan timeout)
   at System.ServiceModel.Channels.ConnectionDemuxer.OnConnectionModeKnownCore(ConnectionModeReader modeReader, Boolean isCached)
   at System.ServiceModel.Channels.ConnectionDemuxer.OnConnectionModeKnown(ConnectionModeReader modeReader)
   at System.ServiceModel.Channels.ConnectionModeReader.Complete()
   at System.ServiceModel.Channels.ConnectionModeReader.ReadCallback(Object state)
   at System.ServiceModel.Channels.SocketConnection.FinishRead()
   at System.ServiceModel.Channels.SocketConnection.AsyncReadCallback(Boolean haveResult, Int32 error, Int32 bytesRead)
   at System.ServiceModel.Channels.OverlappedContext.CompleteCallback(UInt32 error, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

InnerException: System.NullReferenceException

Message: Object reference not set to an instance of an object.

StackTrace:    at System.Web.HttpApplication.ThreadContext.Enter(Boolean setImpersonationContext)
   at System.Web.HttpApplication.OnThreadEnterPrivate(Boolean setImpersonationContext)
   at System.Web.AspNetSynchronizationContext.CallCallbackPossiblyUnderLock(SendOrPostCallback callback, Object state)
   at System.Web.AspNetSynchronizationContext.CallCallback(SendOrPostCallback callback, Object state)
   at System.Web.AspNetSynchronizationContext.Post(SendOrPostCallback callback, Object state)
   at System.ServiceModel.Dispatcher.ThreadBehavior.BindCore(MessageRpc& rpc, Boolean startOperation)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
-----------------------------------------------------------------------------------

I wonder if the profiler can work with the VS2010 debugging server.

Any help you can offer is much appreciated!

Regards,



Jonathan Pritchard

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 23 May 2012, 05:49 PM
Hello Jonathan,

I think this problem was reported by another customer some time ago. The solution is to start the profiler service not on Page_Load but in the Application_Start method of the Global.asax file of the web application, as it is suggested in the help article you mentioned.
We have not investigated this behavior more thoroughly but we will keep you updated with any new information. Hope that helps.

Kind regards,
Alexander
the Telerik team
Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Tags
General Discussions
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or