This is a migrated thread and some comments may be shown as answers.

PreambleAck type 72

1 Answer 539 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
fabrice
Top achievements
Rank 1
fabrice asked on 26 Dec 2012, 08:38 AM
Hi,

I'm trying to use OpenAccessProfiler. I have a web application configuring on port 15555 (local).
In event 'Application_Start', i wrote Telerik.OpenAccess.ServiceHost.ServiceHostManager.StartProfilerService(15555).
In OpenAccess Profiler, i connect to :
Server : localhost
Port : 15555
Connection name : MyConnection (the same connection name of web.config)
I have the error 'Type d'enregistrement attendu 'PreambleAck', type trouvé '72'.'

Telerik.OpenAccess.Exceptions.ConfigurationException: Server did not accept communication, maybe the server runs an older OpenAccess version. You have to use the same OpenAccess version on both sides. (Client: 2 / 2012.3.1209.1) ---> System.ServiceModel.ProtocolException: Vous avez tenté de créer un canal vers un service qui ne prend pas en charge le tramage .Net. Il est possible que vous rencontriez un point de terminaison HTTP. ---> System.IO.InvalidDataException: Type d'enregistrement attendu 'PreambleAck', type trouvé '72'.
   --- Fin de la trace de la pile d'exception interne ---

Server stack trace:
   à System.ServiceModel.Channels.FramingDecoder.ValidatePreambleAck(FramingRecordType foundType)
   à System.ServiceModel.Channels.ClientSingletonDecoder.Decode(Byte[] bytes, Int32 offset, Int32 size)
   à System.ServiceModel.Channels.ConnectionUpgradeHelper.ValidateUpgradeResponse(Byte[] buffer, Int32 count, ClientFramingDecoder decoder)
   à System.ServiceModel.Channels.ConnectionUpgradeHelper.InitiateUpgrade(StreamUpgradeInitiator upgradeInitiator, IConnection& connection, ClientFramingDecoder decoder, IDefaultCommunicationTimeouts defaultTimeouts, TimeoutHelper& timeoutHelper)
   à System.ServiceModel.Channels.StreamedFramingRequestChannel.SendPreamble(IConnection connection, TimeoutHelper& timeoutHelper, ClientFramingDecoder decoder, SecurityMessageProperty& remoteSecurity)
   à System.ServiceModel.Channels.StreamedFramingRequestChannel.StreamedConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)
   à System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
   à System.ServiceModel.Channels.StreamedFramingRequestChannel.StreamedFramingRequest.SendRequest(Message message, TimeSpan timeout)
   à System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   à System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   à System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   à System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   à System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   à Telerik.OpenAccess.ProfilerClient.ProfilerService.IProfilerService.GetServiceVersion()
   à Telerik.OpenAccess.ProfilerClient.ClientService..ctor(String server, Int32 port)
   --- Fin de la trace de la pile d'exception interne ---
   à Telerik.OpenAccess.ProfilerClient.ClientService..ctor(String server, Int32 port)
   à Telerik.OpenAccess.ProfilerDataAdapter.Adapter.OnlineLogEventAdapter.Run()

I have the last version of openaccess orm (2012.3.1209.1).

Can you help me ?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 28 Dec 2012, 08:11 PM
Hello Fabrice,

I assume that you are using the same version of the OpenAccess Profiler as the one installed on your machine (2012.3.1209). This exception comes from WCF and most likely indicates that there is a problem with the service setup or something blocks the communication between your application and the profiler. Is it possible that your web application contains another service which might collide with the profiling service?
If you are using Visual Studio 2012 by default IIS Express is used to host the web application and you could try switching to the Visual Studio Development Server to see if it helps. You could change the hosting server from the Properties pages of the project -> Web -> Use Visual Studio Development Server.

If you are still unable to connect the profiler, you could try using its offline profiling capabilities by creating binary log files from your application and opening them later with the OpenAccess Profiler, as described in this article.
Hope that helps.

All the best,
Alexander
the Telerik team
Q3'12 SP1 of OpenAccess ORM packs Multi-Table Entities mapping support. Check it out.
Tags
General Discussions
Asked by
fabrice
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or