Page 1 of 1

Problem getting script written in VS2015 working in VS2017 on new system

Posted: Mon Aug 19, 2019 7:53 pm
by Aracknid
I wrote a script/console app in VS2015 on my old laptop to rip test plans written on a web site to a text file . It was written using Ranorex 8.3.x. It was working without issues.

I received a new laptop, and it has VS2017 on it, and I installed Ranorex 9.1.1. I opened the script/console app and tried to run it and had a few issues that I resolved (was looking for older Ranorex 8.3.x references, older .NET, etc..) Everything is now compiling.

When I run it though, it just dies as soon as it executes the "colDOM = ..." line of code. I have breakpoints on the next line and in my try catch (not shown in sample below) and it never hits any of those breakpoints. It just spits out a bunch of text in the debug window and stops.

Some thought I had and tried:
- In Windows Features, I enabled .NET 3.5 just in case something needed it
- I repaired my Ranorex installation (did not uninstall and re-install, just did a repair)
- I turned on .NET framework source stepping and got slightly different output in the debug. It's also at the bottom

Any ideas???

Thanks

Aracknid

    <STAThread()>
    Sub Main()

            InitResolver()
            RanorexInit()

            Dim colDOM As System.Collections.Generic.IList(Of Ranorex.WebDocument)
             Dim sDom As String = "@domain='my.website.com' and @state='complete'"

            'DIES HERE
            colDOM = Ranorex.Host.Current.Find(Of Ranorex.WebDocument)(String.Format("./dom[{0}]", sDom))
            If colDOM.Count = 0 Then
                MsgBox("Failed to find any DOMs", MsgBoxStyle.OkOnly, "My TItle")
                End
            End If
........
lots of stuff snipped out

end
Here's what I see in VS2017 in the Output window:

Code: Select all

BUILD:

1>------ Build started: Project: ScrapeTPTestCaseToFile, Configuration: Debug Any CPU ------
1>  No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
1>  ScrapeTPTestCaseToFile -> C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\ScrapeTPTestCaseToFile.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Run Up To InitResolver function:

'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\ScrapeTPTestCaseToFile.exe'. Symbols loaded.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\PrivateAssemblies\Runtime\Microsoft.VisualStudio.Debugger.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

Run InitResolver function:

'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Core.Resolver.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

Run RanorexInit function:

'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Bootstrapper.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Libs.Util.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Libs.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Common.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Contracts.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Common.Net35.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Libs.WinApi.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Core.Injection.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Libs.Domain.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Libs.Base.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'Anonymously Hosted DynamicMethods Assembly'. 
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Integrations.TestRail.Service.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Integrations.TestRail.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Integrations.Services.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Integrations.TestRail.Controls.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Integrations.Jira.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'. Cannot find or open the PDB file.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\AppData\Local\Temp\VisualStudio.XamlDiagnostics.3372\Microsoft.VisualStudio.DesignTools.WpfTap.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x3094 has exited with code 0 (0x0).
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Win32.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

Run Line that dies:

'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Libs.Licensing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.DurableInstancing\v4.0_4.0.0.0__31bf3856ad364e35\System.Runtime.DurableInstancing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Core.WinApi.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationProvider.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Libs.WinForms.dll'. Module was built without symbols.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Delphi.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Msaa.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Wpf.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.WpfProxy.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Uia.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\UIAutomationClient\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationClient.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.WinForms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.ChromeWeb.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.FirefoxWeb.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Flex.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Office.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.RawText.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Java.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Program Files (x86)\Ranorex\Studio\Bin\Ranorex.Plugin.Sap.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Qt.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Mobile.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Mvvm.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Cef.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.WebDriver.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.CefHost.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.WinFormsProxy.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x1100 has exited with code 0 (0x0).
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\DelphiInstrumentation.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Instrumentation.Qt.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x35a8 has exited with code 0 (0x0).
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\assembly\GAC\Microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\Microsoft.mshtml.dll'. Module was built without symbols.
The program '[3372] ScrapeTPTestCaseToFile.exe' has exited with code 0 (0x0).

Here are the last few lines when I re-run it with .NET framework source stepping on. Seems like there are more errors here:

Code: Select all

'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Mvvm.dll'. Cannot find or open the PDB file.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.Cef.dll'. Cannot find or open the PDB file.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.WebDriver.dll'. Cannot find or open the PDB file.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.CefHost.dll'. Cannot find or open the PDB file.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Plugin.WinFormsProxy.dll'. Cannot find or open the PDB file.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'. Cannot find or open the PDB file.
The thread 0x2500 has exited with code 0 (0x0).
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\DelphiInstrumentation.dll'. Cannot find or open the PDB file.
Exception thrown: 'System.Exception' in Ranorex.Plugin.Mobile.dll
The thread 0x27b0 has exited with code 0 (0x0).
Exception thrown: 'System.ComponentModel.Win32Exception' in System.dll
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\Users\........\ScrapeTPTestCaseToFile\ScrapeTPTestCaseToFile\bin\Debug\Ranorex.Instrumentation.Qt.dll'. Cannot find or open the PDB file.
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll'. Cannot find or open the PDB file.
Exception thrown: 'System.Runtime.Remoting.RemotingException' in System.Runtime.Remoting.dll
Exception thrown: 'System.Runtime.Remoting.RemotingException' in mscorlib.dll
Exception thrown: 'System.Runtime.Remoting.RemotingException' in System.Runtime.Remoting.dll
Exception thrown: 'System.Runtime.Remoting.RemotingException' in mscorlib.dll
Exception thrown: 'System.Runtime.Remoting.RemotingException' in System.Runtime.Remoting.dll
Exception thrown: 'System.Runtime.Remoting.RemotingException' in mscorlib.dll
Exception thrown: 'System.Runtime.Remoting.RemotingException' in System.Runtime.Remoting.dll
Exception thrown: 'System.Runtime.Remoting.RemotingException' in mscorlib.dll
'ScrapeTPTestCaseToFile.exe' (CLR v4.0.30319: ScrapeTPTestCaseToFile.exe): Loaded 'C:\WINDOWS\assembly\GAC\Microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\Microsoft.mshtml.dll'. Module was built without symbols.
The program '[10212] ScrapeTPTestCaseToFile.exe' has exited with code 0 (0x0).

Re: Problem getting script written in VS2015 working in VS2017 on new system

Posted: Mon Aug 19, 2019 9:45 pm
by Aracknid
I spent a lot of time installing / uninstalling Ranorex versions (9.1.1, 9.0.1, 8.3.3) to see if it would make a difference, and it doesn't. Then by fluke (after one of many reboots) I tried to run the last built console app from the command line without VS running, and it worked. What I found is that when running within VS, for some reason I've yet to figure out, it simply won't work.

I believe this is a VS issue (likely a settings issue or my own failure to grasp some concept when things are not working as expected), and not a Ranorex issue at all.

If anyone has any insight, I'd appreciate it. But no worries otherwise.

Aracknid.