Unhandled exception in V2 RC1

Bug reports.
Posts: 2
Joined: Wed Jan 28, 2009 4:12 pm
Location: SwissRe, Zurich, Switzerland

Unhandled exception in V2 RC1

Post by dharrison_ch » Fri Feb 06, 2009 1:37 pm

Hi Ranorex Team,
Saw this unhandled exception:
Ranorex Studio Version :
.NET Version : 2.0.50727.3053
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 2
Current culture : German (Switzerland) (de-CH)
Current UI language : en-US
Working Set Memory : 86104kb
GC Heap Memory : 42750kb

Exception thrown:
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at Debugger.Thread.GetStackTrace(String formatSymbols, String formatNoSymbols)
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_ExceptionThrown(Object sender, ExceptionEventArgs e)
at Debugger.Process.OnExceptionThrown(ExceptionEventArgs e)
at Debugger.Process.RaisePausedEvents()
at Debugger.Interop.MTA2STA.<>c__DisplayClass3.<EnqueueCall>b__0()
at Debugger.Interop.MTA2STA.PerformCall()
at Debugger.Interop.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
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()

---- Recent log messages:
Failed to append recent log messages.
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
at ICSharpCode.SharpDevelop.Sda.ExceptionBox.getClipboardString()

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: [TextEditorDisplayBindingWrapper C:\Documents and Settings\srzavi\My Documents\RanorexStudio Projects\SDCV2RanorexConsoleApp\SDCV2RanorexConsoleApp\Program.cs]
ProjectService.OpenSolution: [Solution: FileName=C:\Documents and Settings\srzavi\My Documents\RanorexStudio Projects\SDCV2RanorexConsoleApp\SDCV2RanorexConsoleApp.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: SDCV2RanorexConsoleApp]

// -------------------------------------------------------------------------------
when I performed the programmatic step:

// Create a Ranorex MenuBar using RanoreXPath
MenuBar menu = @"/form[@controlname='ShellForm']/menubar[@controlname='menuStrip1']";

In the example .Net application I am coding against I dont believe there is a controlname such as "menuStrip1". The actual MenuStrip/Menu tah texists in the app is one from Infragistics - which I cant see via the Ranorex Spy :(
Thanks for your good effort...
David Harrison
QA/Test Manager

User avatar
Support Team
Site Admin
Site Admin
Posts: 12173
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Post by Support Team » Fri Feb 06, 2009 3:41 pm

Hi David,

Ranorex 2.0 has been released, please download the setup from our homepage. This bug should be fixed in this release.

Ranorex Support Team