This question is locked. New answers and comments are not allowed.
I have been struggling with this issue for a few days now after upgrading to R2, I'm having all kinds of trouble with DLLs. I have my main testing project and a secondary project which has some utility code for accessing DB's etc. Everytime I build its compiles fine, but if I try to run the test I get an error (see below). I've gone through verifying the versions match and setting the proporties to not be specific about version. The dlls are in the bin, so I'm at a loss as to why they can't be found.
As a test I created a new solution/project and threw in a WatiN dll I had and compiled that in my solution (writing some basic script to check something on the google home page) and it failed with the same issue (see below). I'm wondering if there is an issue with non telerik/MS dlls.
Telerik solution issue:
Telerik solution using WatiN dll:
As a test I created a new solution/project and threw in a WatiN dll I had and compiled that in my solution (writing some basic script to check something on the google home page) and it failed with the same issue (see below). I'm wondering if there is an issue with non telerik/MS dlls.
Telerik solution issue:
Overall Result: Fail
------------------------------------------------------------
'11/8/2011 6:25:13 PM' - Starting execution....
'11/8/2011 6:25:17 PM' - Detected custom code in test. Locating test assembly: UrbanScience.BMI.Automation.dll.
'11/8/2011 6:25:17 PM' - Assembly Found: C:\VisualStudio2010\DBI-BPO\QA\Main\UrbanScience.BMI.Automation\bin\Debug\UrbanScience.BMI.Automation.dll
'11/8/2011 6:25:17 PM' - Loading code class: 'UrbanScience.BMI.Automation._1_Reusable_Tests.NavigateToTestURL'.
------------------------------------------------------------
'11/8/2011 6:25:18 PM' - 'Fail' : 1. [NavigateToTestURL_CodedStep] : Navigate to Active Browser
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[NavigateToTestURL_CodedStep] : Navigate to Active Browser'.
InnerException:
System.IO.FileNotFoundException: Could not load file or assembly 'UrbanScience.DBI.UnitTestFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'UrbanScience.DBI.UnitTestFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at UrbanScience.BMI.Automation._1_Reusable_Tests.NavigateToTestURL.NavigateToTestURL_CodedStep()
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Program Files (x86)\Telerik\Test Studio 2011.2\Bin\ArtOfTest.Runner.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = ***********
LOG: DisplayName = UrbanScience.DBI.UnitTestFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/Telerik/Test Studio 2011.2/Bin/
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\Telerik\Test Studio 2011.2\Bin\ArtOfTest.Runner.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Telerik/Test Studio 2011.2/Bin/UrbanScience.DBI.UnitTestFramework.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Telerik/Test Studio 2011.2/Bin/UrbanScience.DBI.UnitTestFramework/UrbanScience.DBI.UnitTestFramework.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Telerik/Test Studio 2011.2/Bin/UrbanScience.DBI.UnitTestFramework.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Telerik/Test Studio 2011.2/Bin/UrbanScience.DBI.UnitTestFramework/UrbanScience.DBI.UnitTestFramework.EXE.
------------------------------------------------------------
'11/8/2011 6:25:18 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'11/8/2011 6:25:18 PM' - Overall Result: Fail
'11/8/2011 6:25:18 PM' - Duration: [0 min: 1 sec: 262 msec]
------------------------------------------------------------
'11/8/2011 6:25:19 PM' - Test completed!
Telerik solution using WatiN dll:
Overall Result: Fail
------------------------------------------------------------
'11/8/2011 6:43:08 PM' - Starting execution....
'11/8/2011 6:43:11 PM' - Detected custom code in test. Locating test assembly: WatiN TestProject.dll.
'11/8/2011 6:43:11 PM' - Assembly Found: C:\VisualStudio2010\WatiN\WatiN TestProject\WatiN TestProject\bin\Debug\WatiN TestProject.dll
'11/8/2011 6:43:11 PM' - Loading code class: 'WatiN_TestProject.WebTest1'.
------------------------------------------------------------
'11/8/2011 6:43:12 PM' - 'Fail' : 1. [WatiNTest] : WatiN test
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[WatiNTest] : WatiN test'.
InnerException:
System.IO.FileNotFoundException: Could not load file or assembly 'WatiN.Core, Version=2.1.0.1196, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. The system cannot find the file specified.
File name: 'WatiN.Core, Version=2.1.0.1196, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e'
at WatiN_TestProject.WebTest1.WatiNTest()
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Program Files (x86)\Telerik\Test Studio 2011.2\Bin\ArtOfTest.Runner.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = *****************
LOG: DisplayName = WatiN.Core, Version=2.1.0.1196, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/Telerik/Test Studio 2011.2/Bin/
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\Telerik\Test Studio 2011.2\Bin\ArtOfTest.Runner.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: WatiN.Core, Version=2.1.0.1196, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Telerik/Test Studio 2011.2/Bin/WatiN.Core.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Telerik/Test Studio 2011.2/Bin/WatiN.Core/WatiN.Core.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Telerik/Test Studio 2011.2/Bin/WatiN.Core.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/Telerik/Test Studio 2011.2/Bin/WatiN.Core/WatiN.Core.EXE.
------------------------------------------------------------
'11/8/2011 6:43:12 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'11/8/2011 6:43:12 PM' - Overall Result: Fail
'11/8/2011 6:43:12 PM' - Duration: [0 min: 1 sec: 91 msec]
------------------------------------------------------------
'11/8/2011 6:43:13 PM' - Test completed!