Solution Crashes after Ranorex 8.1 Upgrade

Ask general questions here.
fablich
Posts: 6
Joined: Mon Feb 19, 2018 9:18 am

Solution Crashes after Ranorex 8.1 Upgrade

Post by fablich » Tue Apr 10, 2018 8:43 am

Hi,

after installing Ranorex 8.1 the upgrade of my solution does not work anymore.
It throws the exception down below and than keeps my machine busy while tying to load the solution. But it won't finish.

The Log-File of the Upgrade Shows one warning:
You are having a reference to yourself. This is a cyclic reference which you should fix.
C:\workspace\...XSZ.csproj
But this warning was also shown when updating from 7.2.1 to 8.0.1

The Exception:

Code: Select all

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
---STACKTRACE---
System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
  System.Guid+GuidResult.SetFailure(ParseFailureKind failure,String failureMessageID,Object failureMessageFormatArgument,String failureArgumentName,Exception innerException) +0x0
  System.Guid.TryParseGuidWithDashes(String guidString,GuidResult& result) +0x0
  System.Guid.TryParseGuid(String g,GuidStyles flags,GuidResult& result) +0xe3
  System.Guid..ctor(String g) +0x29
  Ranorex.Addins.Integrations.IntegrationStudioService.GetRxStudioChildItems(IEnumerable`1 studioTestSuiteChildren,RxBaseType parentItem) +0x117
  Ranorex.Addins.Integrations.IntegrationStudioService.GetRxStudioChildItems(IEnumerable`1 studioTestSuiteChildren,RxBaseType parentItem) +0x164
  Ranorex.Addins.Integrations.IntegrationStudioService.GetRxStudioChildItems(IEnumerable`1 studioTestSuiteChildren,RxBaseType parentItem) +0x164
  Ranorex.Addins.Integrations.IntegrationStudioService.GetRxStudioChildItems(IEnumerable`1 studioTestSuiteChildren,RxBaseType parentItem) +0x164
  Ranorex.Addins.Integrations.IntegrationStudioService.GetCurrentlyOpenRxSolution() +0x14f
  Ranorex.Integrations.TestRail.Core.Synchronization.Metadata.SyncDataStore.ResolveStoreLocation(Boolean& isNewSolutionItem) +0x3
  Ranorex.Integrations.TestRail.Core.Synchronization.Metadata.SyncDataStore.Load() +0x0
  Ranorex.Integrations.TestRail.Core.Synchronization.Metadata.KeepInMemorySyncDataStore.Load() +0x8
  Ranorex.Integrations.TestRail.Service.IntegrationsTestRailServiceImpl.IsIntegrated(RxProject proj) +0xd
  ICSharpCode.SharpDevelop.Project.ProjectNode.SetImageIcon(IProject project) +0x15b
  ICSharpCode.SharpDevelop.Project.ProjectNode..ctor(IProject project) +0x6c
  ICSharpCode.SharpDevelop.Project.DefaultDotNetNodeBuilder.AddProjectNode(TreeNode motherNode,IProject project) +0x0
  ICSharpCode.SharpDevelop.Project.NodeBuilders.AddProjectNode(TreeNode motherNode,IProject project) +0x47
  ICSharpCode.SharpDevelop.Project.SolutionFolderNode.Initialize() +0x2e
  ICSharpCode.SharpDevelop.Project.SolutionFolderNode..ctor(Solution solution,SolutionFolder folder) +0x5e
  ICSharpCode.SharpDevelop.Project.ProjectBrowserControl.ViewSolution(Solution solution) +0x56
  ICSharpCode.SharpDevelop.Project.ProjectBrowserControl.RefreshView() +0x20
  ICSharpCode.SharpDevelop.Project.ProjectBrowserPad+<>c.<RefreshViewAsync>b__48_0() +0x6
  ICSharpCode.SharpDevelop.Project.ProjectBrowserPad.RefreshViewAsync() +0x3e
  ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.CreateItemsListFromMSBuild(Boolean forceResolve) +0x13c
  Ranorex.Addins.MsBuildProjectUtil.UpdateMsBuildProject(ProjectLoadedEventArgs e) +0xbf
  Ranorex.Addins.AddRxAssembliesAutostartCommand.ProjectBindingService_ProjectLoaded(Object sender,ProjectLoadedEventArgs e) +0x6
  System.EventHandler`1.Invoke(Object sender,TEventArgs e) +0xffffffff
  ICSharpCode.SharpDevelop.ProjectBindingService.LoadProject(ProjectLoadInformation loadInformation) +0x24e
  ICSharpCode.SharpDevelop.Project.Solution.SetupSolutionLoadSolutionProjects(Solution newSolution,StreamReader sr,IProgressMonitor progressMonitor,UpgraderResult loadUpgraderResult) +0x293
  ICSharpCode.SharpDevelop.Project.Solution.SetupSolution(Solution newSolution,UpgraderResult loadUpgraderResult) +0xf7
  ICSharpCode.SharpDevelop.Project.Solution.Load(String fileName,UpgraderResult& upgraderResult) +0x98
  ICSharpCode.SharpDevelop.Project.ProjectService.LoadSolutionInternal(String fileName) +0x54
  ICSharpCode.Core.FileUtility+<>c__DisplayClass73_0.<ObservedLoad>b__0() +0x11
  ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile,String fileName,String message,FileErrorPolicy policy) +0x11
  ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs,String fileName,String message,FileErrorPolicy policy) +0x28
  ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs,String fileName,FileErrorPolicy policy) +0xd
  ICSharpCode.SharpDevelop.Project.ProjectService.LoadSolution(String fileName) +0x1e
  ICSharpCode.StartPage.UI.NavigationBar.NavigationBarWebBrowser.LoadSolutionInternal(String fileName) +0x7
  ICSharpCode.Core.FileUtility+<>c__DisplayClass73_0.<ObservedLoad>b__0() +0x11
  ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile,String fileName,String message,FileErrorPolicy policy) +0x11
  ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs,String fileName,String message,FileErrorPolicy policy) +0x28
  ICSharpCode.Core.FileUtility.ObservedLoad(NamedFileOperationDelegate saveFileAs,String fileName,FileErrorPolicy policy) +0xd
  ICSharpCode.StartPage.UI.NavigationBar.NavigationBarWebBrowser.NavBrowser_Navigating(Object sender,NavigatingCancelEventArgs e) +0xc3
  System.Windows.Controls.WebBrowser.OnNavigating(NavigatingCancelEventArgs e) +0x1b
  MS.Internal.Controls.WebBrowserEvent.BeforeNavigate2(Object pDisp,Object& url,Object& flags,Object& targetFrameName,Object& postData,Object& headers,Boolean& cancel) +0xd2
  System.RuntimeMethodHandle.InvokeMethod(Object target,Object[] arguments,Signature sig,Boolean constructor) +0xffffffff
  System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,Object[] parameters,Object[] arguments) +0x16
  System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object[] parameters,CultureInfo culture) +0x7a
  MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) +0xffffffff
  System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) +0x40
  System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) +0x65
  System.Windows.Application.RunDispatcher(Object ignore) +0x24
  System.Windows.Application.RunInternal(Window window) +0xee
  System.Windows.Application.Run(Window window) +0x1f
  ICSharpCode.SharpDevelop.Commands.WorkbenchStartup.Run(IList`1 fileList) +0x18b
  ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings) +0x3a
  ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbench(WorkbenchSettings settings) +0x3b
  ICSharpCode.SharpDevelop.Sda.SharpDevelopHost.RunWorkbench(WorkbenchSettings settings) +0x1e
  ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication() +0x1aa
  ICSharpCode.SharpDevelop.SharpDevelopMain.Run() +0x99
  ICSharpCode.SharpDevelop.SharpDevelopMain.Main(String[] args) +0x28
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
  System.RuntimeMethodHandle.InvokeMethod(Object target,Object[] arguments,Signature sig,Boolean constructor) +0xffffffff
  System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,Object[] parameters,Object[] arguments) +0x7
  System.Delegate.DynamicInvokeImpl(Object[] args) +0x24
  System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback,Object args,Int32 numArgs) +0x58
  System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,Delegate callback,Object args,Int32 numArgs,Delegate catchHandler) +0x2

---ORIGINAL STACKTRACE---
System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
   at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
   at System.Guid.TryParseGuidWithDashes(String guidString, GuidResult& result)
   at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
   at System.Guid..ctor(String g)
   at Ranorex.Addins.Integrations.IntegrationStudioService.GetRxStudioChildItems(IEnumerable`1 studioTestSuiteChildren, RxBaseType parentItem)
   at Ranorex.Addins.Integrations.IntegrationStudioService.GetRxStudioChildItems(IEnumerable`1 studioTestSuiteChildren, RxBaseType parentItem)
   at Ranorex.Addins.Integrations.IntegrationStudioService.GetRxStudioChildItems(IEnumerable`1 studioTestSuiteChildren, RxBaseType parentItem)
   at Ranorex.Addins.Integrations.IntegrationStudioService.GetRxStudioChildItems(IEnumerable`1 studioTestSuiteChildren, RxBaseType parentItem)
   at Ranorex.Addins.Integrations.IntegrationStudioService.GetCurrentlyOpenRxSolution()
   at Ranorex.Integrations.TestRail.Core.Synchronization.Metadata.SyncDataStore.ResolveStoreLocation(Boolean& isNewSolutionItem)
   at Ranorex.Integrations.TestRail.Core.Synchronization.Metadata.SyncDataStore.Load()
   at Ranorex.Integrations.TestRail.Core.Synchronization.Metadata.KeepInMemorySyncDataStore.Load()
   at Ranorex.Integrations.TestRail.Service.IntegrationsTestRailServiceImpl.IsIntegrated(RxProject proj)
   at ICSharpCode.SharpDevelop.Project.ProjectNode.SetImageIcon(IProject project)
   at ICSharpCode.SharpDevelop.Project.ProjectNode..ctor(IProject project)
   at ICSharpCode.SharpDevelop.Project.DefaultDotNetNodeBuilder.AddProjectNode(TreeNode motherNode, IProject project)
   at ICSharpCode.SharpDevelop.Project.NodeBuilders.AddProjectNode(TreeNode motherNode, IProject project)
   at ICSharpCode.SharpDevelop.Project.SolutionFolderNode.Initialize()
   at ICSharpCode.SharpDevelop.Project.SolutionFolderNode..ctor(Solution solution, SolutionFolder folder)
   at ICSharpCode.SharpDevelop.Project.ProjectBrowserControl.ViewSolution(Solution solution)
   at ICSharpCode.SharpDevelop.Project.ProjectBrowserControl.RefreshView()
   at ICSharpCode.SharpDevelop.Project.ProjectBrowserPad.<>c.<RefreshViewAsync>b__48_0()   at ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.STAThreadCaller.<>c__DisplayClass10_1.<BeginCall>b__0()
   at ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.STAThreadCaller.ProcessAsyncCallQueue()
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

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

Re: Solution Crashes after Ranorex 8.1 Upgrade

Post by Support Team » Mon Apr 16, 2018 4:15 am

Hello fablich,

If possible I would like to examine your solution (pre-upgrade) to determine the culprit. To do so I ask that you please create a support query and reference this forum post:

https://www.ranorex.com/support-query/

Please attach your solution (pre- 8.1 upgrade) to the query. If you do not have a backup of the solution in your own backup system, you may find a zipped backup of the solution in the solution directory. Ranorex automatically creates this backup before upgrading the solution as part of the upgrade process.

Please let me know if you have any questions and I look forward to hearing from you!

-Jon
.
Image

ahoisl
Certified Professional
Certified Professional
Posts: 125
Joined: Fri Sep 07, 2007 8:16 am

Re: Solution Crashes after Ranorex 8.1 Upgrade

Post by ahoisl » Mon Apr 16, 2018 8:00 pm

This is probably fixed with Ranorex 8.1.1 which was released last week (see release ntoes). At least It's worth a try :D

Regards,
Alex
Ranorex Team