LineageGlueRule 'web_child_elements' caused RemotingExceptio

Class library usage, coding and language questions.
Wooltown
Posts: 2
Joined: Thu Jan 10, 2013 8:34 am

LineageGlueRule 'web_child_elements' caused RemotingExceptio

Post by Wooltown » Mon Mar 24, 2014 8:46 am

Ranorex version 4.1.15.17134
Windows 7 Pro
IE 9.0.8112.16421

I am having problem testing a webportal, get a lot of errors from time to time, can someone help me, is there a way to solve this? Do you need more information?

This is part of my code:

Code: Select all

      var tags =
        Service.Repo.MainPage.OrderBody.AssignmentBody.AssignmentLineBody.AssignmentLineOverviewButtonRow
          .selMultiLineMode.Find<OptionTag>("option");
      foreach (var tag in tags)
      {
        Ranorex.Keyboard.Press(tag.InnerText == "Send & Print" ? Keys.Enter : Keys.Down);
      }
This is the result that occur quite often, but not all times.

20:41.321

Debug

Plugins



LineageGlueRule 'web_child_elements' caused RemotingException on Execute. An error occurred while processing the request on the server: System.Runtime.Remoting.RemotingException: Tcp channel protocol violation: expecting preamble.
at System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadAndMatchPreamble()
at System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& operation)
at System.Runtime.Remoting.Channels.Ipc.IpcServerHandler.ReadHeaders()
at System.Runtime.Remoting.Channels.Ipc.IpcServerTransportSink.ServiceRequest(Object state)
at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
Show/Hide Stacktrace
Server stack trace: at System.Runtime.Remoting.Channels.Ipc.IpcServerHandler.ReadToEndOfHeaders(BaseTransportHeaders headers) at System.Runtime.Remoting.Channels.Ipc.IpcClientHandler.ReadHeaders() at System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream) at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Ranorex.Plugin.TridentIpc.ITridentDom.AddRefCounts(IntPtr[] ptrs) at Ranorex.Plugin.WebChildrenRule.Execute(GlueRuleExecutionState state) at Ranorex.Core.ElementEngine.ApplyGlueRules(Element element, GlueRuleExecutionState state)



20:41.381

Debug

Plugins



LineageGlueRule 'web_child_elements' caused RemotingException on Execute. Failed to write to an IPC Port: The pipe is being closed.
Show/Hide Stacktrace
Server stack trace: at System.Runtime.Remoting.Channels.Ipc.IpcPort.Write(Byte[] data, Int32 offset, Int32 size) at System.Runtime.Remoting.Channels.Ipc.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count) at System.Runtime.Remoting.Channels.ChunkedMemoryStream.WriteTo(Stream stream) at System.Runtime.Remoting.Channels.Ipc.IpcClientHandler.SendRequest(IMessage msg, ITransportHeaders headers, Stream contentStream) at System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream) at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Ranorex.Plugin.TridentIpc.ITridentDom.AddRefCounts(IntPtr[] ptrs) at Ranorex.Plugin.WebChildrenRule.Execute(GlueRuleExecutionState state) at Ranorex.Core.ElementEngine.ApplyGlueRules(Element element, GlueRuleExecutionState state)

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: LineageGlueRule 'web_child_elements' caused RemotingExceptio

Post by Support Team » Wed Mar 26, 2014 5:42 pm

Hello Wooltown,

Can you please give us more information about your application under test?
Is it possible to post a Ranorex Snapshot file?
Additionally it would be great to get access to your application if this is possible in order to analyze the problem.
Does the issue also occur when you are using other browsers?

Regards,
Bernhard
.
Image

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: LineageGlueRule 'web_child_elements' caused RemotingExceptio

Post by krstcs » Wed Apr 02, 2014 6:10 pm

Had the same issue in one of my test runs today. Sent email to support.
Shortcuts usually aren't...

brendaj
Posts: 2
Joined: Thu Sep 06, 2012 4:20 pm

Re: LineageGlueRule 'web_child_elements' caused RemotingExceptio

Post by brendaj » Thu Aug 28, 2014 8:11 pm

I'm also experiencing this issue extensively. Please let me know how I can help demonstrate it?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: LineageGlueRule 'web_child_elements' caused RemotingExceptio

Post by Support Team » Tue Sep 02, 2014 4:14 pm

Hi brendaj,

Please provide some additional information about your issue.
May I also ask you to answer the following questions?
  • Which version of Ranorex is installed on your machine?
  • Is it possible to post a Ranorex Snapshot file?
  • Which Browser are you using?
  • Is this post about the same exception?
If you don’t want to post the information about your issue here in the public forum, you can send an email to [email protected]

Thank you in advance.

Regards,
Markus (S)
.
Image

fatima
Posts: 8
Joined: Wed Sep 17, 2014 7:53 pm

Re: LineageGlueRule 'web_child_elements' caused RemotingExceptio

Post by fatima » Fri Sep 19, 2014 6:59 pm

Hi,
Did anyone find out the reason for this error message? I have Ranorex 5.1.1 & Windows 7.
I have been using Ranorex (older version) for last two years and never got this error.
But in last couple days I have been noticing it.
Although this error did not cause my automation to fail and all the tests ran fine. But I want to nail down the reason for this.
Thanks,
Fatima

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: LineageGlueRule 'web_child_elements' caused RemotingExceptio

Post by Support Team » Mon Sep 22, 2014 4:31 pm

Hi Fatima,

Can you please give us more information about your test and your application? If your test has no issues during the run it could also come from another application.
Can you please check which element is the reason for this message? It would be great to get a Ranorex Snapshot file or access to your application.

Regards,
Bernhard
.
Image