Ranorex 6.0 unable to call PowerShell script
Posted: Tue May 24, 2016 11:01 am
Hi,
I have written a powershell script and calling it using Ranorex 6.0. Each time it shows an error dialog when I try to execute it. Running same script with v5.4.6 is fine and working nicely.
Is v6.0 stable enough to use for our development work or shall we continue with v5.4.6?
User code file attached which is calling power shell script.
This is what I am getting in exception window
Debugger.DebuggerException: Module is not in collection
---STACKTRACE---
Debugger.DebuggerException: Module is not in collection
Debugger.ModuleCollection.get_Item(ICorDebugModule corModule) +0x3b
Debugger.ManagedCallback.UnloadModule(ICorDebugAppDomain pAppDomain,ICorDebugModule pModule) +0xe
Debugger.ManagedCallbackSwitch.UnloadModule(ICorDebugAppDomain pAppDomain,ICorDebugModule pModule) +0x10
Debugger.ManagedCallbackProxy+<>c__DisplayClass20_0.<UnloadModule>b__0() +0x0
Debugger.MTA2STA+<>c__DisplayClass6_1.<EnqueueCall>b__0() +0x0
Debugger.MTA2STA.PerformCall() +0x47
Debugger.MTA2STA.PerformAllCalls() +0x0
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) +0x0
System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) +0x20
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) +0x70
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) +0x0
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state) +0x2b
System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) +0x37
System.Windows.Forms.Control.InvokeMarshaledCallbacks() +0x63
---ORIGINAL STACKTRACE---
Debugger.DebuggerException: Module is not in collection
at Debugger.ModuleCollection.get_Item(ICorDebugModule corModule)
at Debugger.ManagedCallback.UnloadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
at Debugger.ManagedCallbackSwitch.UnloadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
at Debugger.ManagedCallbackProxy.<>c__DisplayClass20_0.<UnloadModule>b__0()
at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()
at Debugger.MTA2STA.PerformCall()
at Debugger.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
I have written a powershell script and calling it using Ranorex 6.0. Each time it shows an error dialog when I try to execute it. Running same script with v5.4.6 is fine and working nicely.
Is v6.0 stable enough to use for our development work or shall we continue with v5.4.6?
User code file attached which is calling power shell script.
This is what I am getting in exception window
Debugger.DebuggerException: Module is not in collection
---STACKTRACE---
Debugger.DebuggerException: Module is not in collection
Debugger.ModuleCollection.get_Item(ICorDebugModule corModule) +0x3b
Debugger.ManagedCallback.UnloadModule(ICorDebugAppDomain pAppDomain,ICorDebugModule pModule) +0xe
Debugger.ManagedCallbackSwitch.UnloadModule(ICorDebugAppDomain pAppDomain,ICorDebugModule pModule) +0x10
Debugger.ManagedCallbackProxy+<>c__DisplayClass20_0.<UnloadModule>b__0() +0x0
Debugger.MTA2STA+<>c__DisplayClass6_1.<EnqueueCall>b__0() +0x0
Debugger.MTA2STA.PerformCall() +0x47
Debugger.MTA2STA.PerformAllCalls() +0x0
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) +0x0
System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) +0x20
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) +0x70
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) +0x0
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state) +0x2b
System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) +0x37
System.Windows.Forms.Control.InvokeMarshaledCallbacks() +0x63
---ORIGINAL STACKTRACE---
Debugger.DebuggerException: Module is not in collection
at Debugger.ModuleCollection.get_Item(ICorDebugModule corModule)
at Debugger.ManagedCallback.UnloadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
at Debugger.ManagedCallbackSwitch.UnloadModule(ICorDebugAppDomain pAppDomain, ICorDebugModule pModule)
at Debugger.ManagedCallbackProxy.<>c__DisplayClass20_0.<UnloadModule>b__0()
at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()
at Debugger.MTA2STA.PerformCall()
at Debugger.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()