Exception while adding Validations.

Bug reports.
devenb
Posts: 24
Joined: Mon Mar 09, 2009 11:50 am
Location: Bracknell, UK

Exception while adding Validations.

Post by devenb » Mon Mar 09, 2009 12:26 pm

Ranorex Studio Version : 2.0.1.5691
.NET Version : 2.0.50727.3053
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 3
Current culture : English (United Kingdom) (en-GB)
Current UI language : en-US
Working Set Memory : 107052kb
GC Heap Memory : 32399kb

Unhandled exception
Exception thrown:
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Ranorex.Core.Recorder.RepositoryGenerator.UpdateRepositoryWithElementInfo(ElementRepository repo, ElementInfo info, Dictionary`2 pathElementMap, Configuration config)
at Ranorex.Core.Recorder.RepositoryGenerator.UpdateRepositoryWithRecordItem(ElementRepository repo, ElementRecordItem item, Dictionary`2 pathElementMap, Configuration config)
at Ranorex.Core.Recorder.Recorder.AddRecordedItem(RecordItem item, DateTime absoluteEventTime)
at Ranorex.Core.Recorder.Recorder.ValidationHandlerFinishedCallback(IAsyncResult ar)
at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

---- 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: [RanorexLogViewer, Enabled=True, Action=Enable], [RxObjectRepository, Enabled=True, Action=Enable], [RxRecorder, Enabled=True, Action=Enable], [Workflow Foundation Designer, Enabled=True, Action=Enable], [ElementTree, Enabled=True, Action=Enable]
Workbench.ActiveContent: Ranorex.Addins.RecorderPrimaryViewContent
ProjectService.OpenSolution: [Solution: FileName=C:\RanorexEvaluationforWorkflow\RanorexEvaluationforWorkflow\RanorexEvaluationforWorkflow.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: RanorexEvaluationforWorkflow]

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

Post by Support Team » Tue Mar 10, 2009 1:47 pm

Thanks for submitting. We will have a look at it.
It would be helpful if you could describe what you did before the error occurred.

Michael
Ranorex Team