Unhandled Exception (Ranorex 2.0 Preview)

Bug reports.
elie195
Posts: 1
Joined: Mon Jan 12, 2009 11:57 pm

Unhandled Exception (Ranorex 2.0 Preview)

Post by elie195 » Mon Jan 12, 2009 11:59 pm

After successfully opening a project that run fine in v1.5, I get the following error (and crash) when attempting to compile the program:

Ranorex Studio Version : 2.0.0.4977
.NET Version : 2.0.50727.1433
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 2
Current culture : English (United States) (en-US)
Working Set Memory : 91832kb
GC Heap Memory : 19605kb

Unhandled exception
Exception thrown:
Microsoft.Build.BuildEngine.InternalLoggerException: The build was aborted because of an unexpected logger failure. ---> System.InvalidOperationException: Stack empty.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.Stack`1.Pop()
at ICSharpCode.SharpDevelop.Project.MSBuildEngine.SharpDevelopLogger.OnProjectFinished(Object sender, ProjectFinishedEventArgs e)
at ICSharpCode.SharpDevelop.BuildWorker.EventSource.RaiseEvent(BuildEventArgs e)
at ICSharpCode.SharpDevelop.BuildWorker.Program.HostReportEvent(BuildEventArgs e)
at ICSharpCode.SharpDevelop.BuildWorker.Program.ForwardingLogger.OnEvent(Object sender, BuildEventArgs e)
at Microsoft.Build.BuildEngine.EventSource.RaiseProjectFinishedEvent(Object sender, ProjectFinishedEventArgs e)
--- End of inner exception stack trace ---
at Microsoft.Build.BuildEngine.InternalLoggerException.Throw(Exception innerException, BuildEventArgs e, String messageResourceName, Boolean initializationException, String[] messageArgs)
at Microsoft.Build.BuildEngine.EventSource.RaiseProjectFinishedEvent(Object sender, ProjectFinishedEventArgs e)
at Microsoft.Build.BuildEngine.EventSource.RaiseStronglyTypedEvent(BuildEventArgs e)
at Microsoft.Build.BuildEngine.EngineLoggingServicesInProc.ProcessBuildEvent(BuildEventArgs buildEventArgs)
at Microsoft.Build.BuildEngine.EngineLoggingServices.PostLoggingEvent(BuildEventArgs e)
at Microsoft.Build.BuildEngine.EngineLoggingServices.LogProjectFinished(BuildEventContext buildEventContext, String projectFile, Boolean success)
at Microsoft.Build.BuildEngine.Project.InitializeForBuildingTargets(BuildRequest buildRequest)
at Microsoft.Build.BuildEngine.Project.BuildInternal(BuildRequest buildRequest)
at Microsoft.Build.BuildEngine.Engine.BuildProjectInternalInitial(BuildRequest buildRequest, Project project)
at Microsoft.Build.BuildEngine.Engine.BuildProjectInternal(BuildRequest buildRequest, ProjectBuildState buildContext, TaskExecutionContext taskExecutionContext, Boolean initialCall)
at Microsoft.Build.BuildEngine.Engine.EngineBuildLoop(BuildRequest terminatingBuildRequest)
at Microsoft.Build.BuildEngine.Engine.PostProjectEvaluationRequests(Project project, String[] projectFiles, String[][] targetNames, BuildPropertyGroup[] globalPropertiesPerProject, IDictionary[] targetOutputsPerProject, BuildSettings buildFlags, String[] toolVersions)
at Microsoft.Build.BuildEngine.Engine.BuildProject(Project project, String[] targetNames, IDictionary targetOutputs, BuildSettings buildFlags)
at Microsoft.Build.BuildEngine.Engine.BuildProject(Project project, String[] targetNames)
at ICSharpCode.SharpDevelop.BuildWorker.Program.DoBuild()
at ICSharpCode.SharpDevelop.BuildWorker.Program.BuildInProcess(BuildSettings settings, BuildJob job)
at ICSharpCode.SharpDevelop.BuildWorker.WorkerManager.RunBuildInProcess(BuildJob job, BuildSettings settings)
at ICSharpCode.SharpDevelop.Project.MSBuildEngine.<>c__DisplayClass6.<StartBuild>b__1()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

---- 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: ICSharpCode.SharpDevelop.Gui.CompilerMessageView
ProjectService.OpenSolution: [Solution: FileName=C:\Projects\Ranorex\Pump App Automation\Pump App Automation.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: Pump App Automation]

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

Post by Support Team » Wed Jan 14, 2009 1:25 pm

We recommend using V1.5.1 for old projects, because currently there is no migration path from V1.5 to V2.0, so 2.0 should only be used for new projects.

Elricko
Posts: 1
Joined: Tue May 22, 2012 8:28 pm

Re: Unhandled Exception (Ranorex 2.0 Preview)

Post by Elricko » Tue May 22, 2012 8:40 pm

If I have 1 year of development of automated test case on Ranorex version 1.5 with .Net 2.0
and that I want to upgrade my application with .Net 4.0
I will lose a year of test-case development project? :|

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

Re: Unhandled Exception (Ranorex 2.0 Preview)

Post by Support Team » Wed May 23, 2012 9:25 am

We are really sorry, but Ranorex 2.0 is rather a new product than just a new version. Ranorex 1.X was not flexible enough so we had to complete change the Ranorex automation core. However, since Ranorex 2.0 (released 3 years ago) the API is pretty stable and almost completely backwards compatible (with a small number of exceptions, see here).

You can use Ranorex 1.X, 2.X, and 3.X side-by-side, i.e. you can still use Ranorex 1.5 to run your existing test cases and Ranorex 2.X (or 3.X) to create and run test cases for your new .NET 4.0 application.
Elricko wrote:...I want to upgrade my application with .Net 4.0
Are you just compiling to 4.0 now or do you completely rewrite the application, e.g. using WPF?

Regards,
Alex
Ranorex Team
.
Image