Invoke Remotely Failed

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
DanielS
Posts: 29
Joined: Fri Apr 29, 2011 10:39 am

Invoke Remotely Failed

Post by DanielS » Thu May 12, 2011 7:07 pm

I've got this exception:

Exception: Ranorex.ActionFailedException: Action 'invokeremotely' failed on element '{Unknown:dawnGridControl}'. ---> System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.IO.FileNotFoundException: Die Datei oder Assembly "UITestApp.Interface, Version=1.0.4149.34227, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
Dateiname: "UITestApp.Interface, Version=1.0.4149.34227, Culture=neutral, PublicKeyToken=null"

What can i do? I'm using Ranorex 3.0.
Best regards,

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

Re: Invoke Remotely Failed

Post by Support Team » Fri May 13, 2011 9:56 am

Hi,

Please could you post us the corresponding code for this exception. Thank you.

Regards,
Peter
Ranorex Team
.
Image

DanielS
Posts: 29
Joined: Fri Apr 29, 2011 10:39 am

Re: Invoke Remotely Failed

Post by DanielS » Fri May 13, 2011 2:43 pm

now i changed to .Net 4.0 and i don't know wheter this problem still exists or not, if i know it i will post it here.

DanielS
Posts: 29
Joined: Fri Apr 29, 2011 10:39 am

Re: Invoke Remotely Failed

Post by DanielS » Wed May 18, 2011 11:30 am

Okay, the problems before are now solved, but i still have got this one, but with an new message:
*** Exception: Ranorex.ActionFailedException: Action 'invokeremotely' failed on element '{Unknown:dawnGridControlTaskfields}'. ---> System.Runtime.Remoting.RemotingException: Fehler beim Lesen von einem IPC-Port: Die Pipe wurde beendet.
What could be the Problem?
Best regards

DanielS
Posts: 29
Joined: Fri Apr 29, 2011 10:39 am

Re: Invoke Remotely Failed

Post by DanielS » Wed May 18, 2011 11:33 am

update:
I've testet the same again and got this errormessage:
*** Exception: Ranorex.ActionFailedException: Action 'invokeremotely' failed on element '{Unknown:dawnGridControlTaskfields}'. ---> System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.IO.FileNotFoundException: Die Datei oder Assembly "UITestApp.Interface, Version=1.0.4155.20594, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.

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

Re: Invoke Remotely Failed

Post by Support Team » Wed May 18, 2011 12:36 pm

Hi,

you are working with .Net 4.0 have you mentioned the that you have to create a config file?
See how it works in reason#5: http://www.ranorex.com/support/user-gui ... oting.html
If this won´t solve the problem can you provide us more information about your application and the actions that which leads to this problem?

Regards,
Markus
Ranorex Team
.
Image

DanielS
Posts: 29
Joined: Fri Apr 29, 2011 10:39 am

Re: Invoke Remotely Failed

Post by DanielS » Wed May 18, 2011 12:53 pm

yes, i have created the config file. Without the config file it didn't work correctly ( the paths were not found).
Which information do you need? The Code which leeds to the error is:

Code: Select all

		override public string GetColumnCaptionByFieldName(string fieldName)
		{
			return (string)grid.InvokeRemotely(IR_GetColumnCaptionByFieldName, fieldName);
		}
grid has the type:
Ranorex.Control;

Best regards

DanielS
Posts: 29
Joined: Fri Apr 29, 2011 10:39 am

Re: Invoke Remotely Failed

Post by DanielS » Wed May 18, 2011 1:05 pm

update: one important information could be that it's an Dev Express Control.

DanielS
Posts: 29
Joined: Fri Apr 29, 2011 10:39 am

Re: Invoke Remotely Failed

Post by DanielS » Thu May 19, 2011 1:27 pm

here is the complete Exception:

*** Exception: Ranorex.ActionFailedException: Action 'invokeremotely' failed on element '{Unknown:configurationsGrid}'. ---> System.Runtime.Remoting.RemotingException: Fehler beim Lesen von einem IPC-Port: Die Pipe wurde beendet.
Server stack trace:
bei System.Runtime.Remoting.Channels.Ipc.IpcPort.Read(Byte[] data, Int32 offset, Int32 length)
bei System.Runtime.Remoting.Channels.Ipc.PipeStream.Read(Byte[] buffer, Int32 offset, Int32 size)
bei System.Runtime.Remoting.Channels.SocketHandler.ReadFromSocket(Byte[] buffer, Int32 offset, Int32 count)
bei System.Runtime.Remoting.Channels.SocketHandler.Read(Byte[] buffer, Int32 offset, Int32 count)
bei System.Runtime.Remoting.Channels.SocketHandler.ReadAndMatchFourBytes(Byte[] buffer)
bei System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadAndMatchPreamble()
bei System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& operation)
bei System.Runtime.Remoting.Channels.Ipc.IpcClientHandler.ReadHeaders()
bei System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
bei System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
bei Ranorex.Libs.WinForms.IControlProxy.InvokeRemotely(Delegate deleg, Object inputData, Int32 timeout)
bei Ranorex.Plugin.RemoteCommonControls.RemoteControlProxy.Ranorex.Libs.WinForms.IControlProxy.InvokeRemotely(Delegate deleg, Object inputData, Int32 timeout)
bei Ranorex.Plugin.WinFormsFlavorElement.InvokeRemotely(RemotelyInvokedDelegate deleg, Object inputData, Duration timeout)
bei Ranorex.Plugin.WinFormsFlavorElement.InvokeAction(Element element, String name, Object[] args)
bei Ranorex.Core.Element.InvokeAction(String name, Object[] args)
--- Ende der internen Ausnahmestapelüberwachung ---



And here is a snapshot of the element:
snapshot2.rxsnp
(583.73 KiB) Downloaded 228 times
I'm using Win7 64 Bit and the program is 64 bit, too. While browsing in the Spy at this item i got two times an error, that the Ranorex Bridge failed, but i couldn't reproduce this error.
Best regards,
Daniel

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

Re: Invoke Remotely Failed

Post by Support Team » Thu May 19, 2011 3:52 pm

Hi,

According to your snapshot, Ranorex is able to recognize the controls.
Therefore I have following question
Why do you use the invoke remotely? Is there a control which isn't recognized by Ranorex and it is not included in the snapshot?
Please check the Event Manager of Windows, maybe we get more information of this log.

If it's no big deal, could you send or post us a sample application with the same behavior?

Thanks in advance.

Regards,
Peter
Ranorex Team
.
Image

DanielS
Posts: 29
Joined: Fri Apr 29, 2011 10:39 am

Re: Invoke Remotely Failed

Post by DanielS » Fri May 20, 2011 11:00 am

Thank you for your answer,

Here is a code example:
invokeRemotely.rar
(328.2 KiB) Downloaded 233 times
Invoke remotely is used many times in my program, so it would be nice if don't have to rewrite the whole thing. The control shows a table with the results of a few entrys, and i have to check those results. The code is from my antecessor, so i don't know wheter it's possible to recode all without invoke Remotely.
Best regards,
Daniel

DanielS
Posts: 29
Joined: Fri Apr 29, 2011 10:39 am

Re: Invoke Remotely Failed

Post by DanielS » Fri May 20, 2011 11:46 am

okay, now it's become very strange. The testSolution works now. But the first two times it did not work, and i changed nothing. This is the exception which was thrown:


Unexpected exception occured: Ranorex.ActionFailedException: Action 'invokeremotely' failed on element '{Unknown:dawnGridControlResourceMaster}'. ---> System.Runtime.Remoting.RemotingException: Fehler beim Lesen von einem IPC-Port: Die Pipe wurde beendet.
Server stack trace:
bei System.Runtime.Remoting.Channels.Ipc.IpcPort.Read(Byte[] data, Int32 offset, Int32 length)
bei System.Runtime.Remoting.Channels.Ipc.PipeStream.Read(Byte[] buffer, Int32 offset, Int32 size)
bei System.Runtime.Remoting.Channels.SocketHandler.ReadFromSocket(Byte[] buffer, Int32 offset, Int32 count)
bei System.Runtime.Remoting.Channels.SocketHandler.Read(Byte[] buffer, Int32 offset, Int32 count)
bei System.Runtime.Remoting.Channels.SocketHandler.ReadAndMatchFourBytes(Byte[] buffer)
bei System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadAndMatchPreamble()
bei System.Runtime.Remoting.Channels.Tcp.TcpSocketHandler.ReadVersionAndOperation(UInt16& operation)
bei System.Runtime.Remoting.Channels.Ipc.IpcClientHandler.ReadHeaders()
bei System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
bei System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
bei Ranorex.Libs.WinForms.IControlProxy.InvokeRemotely(Delegate deleg, Object inputData, Int32 timeout)
bei Ranorex.Plugin.RemoteCommonControls.RemoteControlProxy.Ranorex.Libs.WinForms.IControlProxy.InvokeRemotely(Delegate deleg, Object inputData, Int32 timeout)
bei Ranorex.Plugin.WinFormsFlavorElement.InvokeRemotely(RemotelyInvokedDelegate deleg, Object inputData, Duration timeout)
bei Ranorex.Plugin.WinFormsFlavorElement.InvokeAction(Element element, String name, Object[] args)
bei Ranorex.Core.Element.InvokeAction(String name, Object[] args)
--- Ende der internen Ausnahmestapelüberwachung ---
bei Ranorex.Core.Element.InvokeAction(String name, Object[] args)
bei Ranorex.Control.InvokeRemotely(RemotelyInvokedDelegate deleg, Object inputData, Duration timeout)
bei Ranorex.Control.InvokeRemotely(RemotelyInvokedDelegate deleg, Object inputData)
bei invokeRemotely.Class1.get_DataRowCount() in c:\Users\stad\Documents\RanorexStudio Projects\invokeRemotely\invokeRemotely\Class1.cs:Zeile 56.
bei invokeRemotely.Class1.Run() in c:\Users\stad\Documents\RanorexStudio Projects\invokeRemotely\invokeRemotely\Class1.cs:Zeile 32.
bei invokeRemotely.Program.Main(String[] args) in c:\Users\stad\Documents\RanorexStudio Projects\invokeRemotely\invokeRemotely\Program.cs:Zeile 35.


In my main solution it's exactly the same code, and there it doesn't work.
Best regards,
Daniel

DanielS
Posts: 29
Joined: Fri Apr 29, 2011 10:39 am

Re: Invoke Remotely Failed

Post by DanielS » Fri May 20, 2011 12:20 pm

Now i've tested it with more InvokeRemotely functions, with the same code as in the main testAutomation, and in the testSolution it works, in the main solution it doesn't. How could that be?
This is the new Testsolution with one more InvokeRemotely function:
invokeRemotely2.rar
(337.13 KiB) Downloaded 230 times
Best regards,
Daniel

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

Re: Invoke Remotely Failed

Post by Support Team » Fri May 20, 2011 12:26 pm

Hi,

Is there an AntiVirus or Firewall running on the computer where your InvokeRemotely call fails?
If yes, please deactivate this applications and retry it.
Regarding to your solution, is it possible to post us the corresponding application too?

Regards,
Peter
Ranorex Team
.
Image

DanielS
Posts: 29
Joined: Fri Apr 29, 2011 10:39 am

Re: Invoke Remotely Failed

Post by DanielS » Fri May 20, 2011 12:47 pm

I deactivated AntiVirus, but without success, it still doesn't work. It's not possible to deactivate the firewall. Unfortunately i am not allowed to give someone the application.
How could it be, that two Ranorex Solutions with the same code work differently? What does the Error with the "Pipe"(Fehler beim Lesen von einem IPC-Port: Die Pipe wurde beendet.) mean?
Best regards,
Daniel