Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.94 KB

File metadata and controls

29 lines (18 loc) · 1.94 KB
title page_title description position
Unable to Add Reference
Unable to Add Reference
Test Studio is an innovative and easy-to-use automated web, WPF and load testing solution. Test Studio tests support essential technologies like ASP.NET AJAX, Silverlight, PHP and MVC. HTML5, Testing framework, functional testing, performance testing, load testing, exploratory testing, manual testing.
1

Unable to Add Reference

PROBLEM

When running a test project, the test fails with the following error in the application log:

09/03 10:53:15,Telerik.TestStudio.RemoteExecutor.exe(15300:14),ProjectModel] Project.Compile() : Unable to add reference Project2012SP2\Profiler Configurations\ClassLibrary5.dll.
Exception: System.IO.FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

Later in the application log, a second error appears:

[09/03 10:53:15,Telerik.TestStudio.RemoteExecutor.exe(15300:14),Execution] TestPlatform.OnRunnerError() : Error during remote runner execution: Compile failed: c:\Users\yee\AppData\Local\Temp\1\Projects\ce1cb993-aea7-46e9-9aa1-5d0493ddf4fc\Project2012SP2\Assembly.tstest.cs(18,7) : error CS0246: The type or namespace name 'ClassLibrary5' could not be found (are you missing a using directive or an assembly reference?)

SOLUTION

This behavior may occur when you try to add an assembly reference to a DLL located in a hidden project folder. These are: bin, Properties, obj, Backup, TestResults, Results, TestLists, Profiler, and Configurations.

To resolve this issue:

1.  Move the external DLL to a different location within the project that is not in one of these hidden folders.

2.  Remove and re-add the reference to the external DLL in the Project Settings screen.