Invoke Remotely Failed
Invoke Remotely Failed
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,
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,
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Invoke Remotely Failed
Hi,
Please could you post us the corresponding code for this exception. Thank you.
Regards,
Peter
Ranorex Team
Please could you post us the corresponding code for this exception. Thank you.
Regards,
Peter
Ranorex Team
Re: Invoke Remotely Failed
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.
Re: Invoke Remotely Failed
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
*** 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
Re: Invoke Remotely Failed
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.
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.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Invoke Remotely Failed
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
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
Re: Invoke Remotely Failed
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:
grid has the type:
Ranorex.Control;
Best regards
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);
}
Ranorex.Control;
Best regards
Re: Invoke Remotely Failed
update: one important information could be that it's an Dev Express Control.
Re: Invoke Remotely Failed
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: 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
*** 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: 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
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Invoke Remotely Failed
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
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
Re: Invoke Remotely Failed
Thank you for your answer,
Here is a code example: 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
Here is a code example: 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
You do not have the required permissions to view the files attached to this post.
Re: Invoke Remotely Failed
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
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
Re: Invoke Remotely Failed
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: Best regards,
Daniel
This is the new Testsolution with one more InvokeRemotely function: Best regards,
Daniel
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Invoke Remotely Failed
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
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
Re: Invoke Remotely Failed
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
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