Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7699925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:35:33+00:00 2026-05-31T22:35:33+00:00

I have a load test which contains only a single unit test. The unit

  • 0

I have a load test which contains only a single unit test.

The unit test is of a function in C# which calls C++ code using C++/CLI wrapper.

It runs well without any exception.

The projects are

1)Business logic ->BusinessLogic.lib

2)Wrapper(takes Business Logic.lib)->Wrapper.dll

3)C# project(takes Wrapper.dll)

The load test on running says that Wrapper.dll is not found whereas the full application runs properly and even unit test doesn’t report any such error

The exact error is

Test method TestProject1.testTest.getstateTest threw exception: System.IO.FileNotFoundException: Could not load file or assembly ‘ManagedBL.dll’ or one of its dependencies. The specified module could not be found

where TestProject1 is the Test Project,testTest is the Test Class and getstateTest is the unit test

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:35:35+00:00Added an answer on May 31, 2026 at 10:35 pm

    Is your load test part of a testing framework (NUnit et al) or is it part of your application?

    If the load test is inside a testing framework, then check that the Wrapper.dll gets copied into the “staging” folder where the test framework outputs the DLL and executes the test. Furthermore, please specify exactly what the error message is when you run the load test.

    Update

    OK, so there are several things that could cause this issue:

    1. Visual Studio does not copy the ManagedBL.dll into the test staging directory.
    2. Visual Studio does not copy the BusinessLogic.lib into the staging directory.
    3. Visual Studio does not copy some other library dependency used by the BusinessLogic.lib (i.e. is the BusinessLogic.lib linking into any other native libraries?)

    Technically, VS should copy the ManagedBL.dll if you have added it to the C# project’s references; however, do check that it gets properly copied anyway (should be in the TestResults folder).

    To fix 2 and 3 you might have to do something like this: How to copy native libraries to the unit test staging directory in Visual Studio 2010

    Finally, if all else fails, I would highly recommend that you get the Process Monitor and run it while your test is loading and use the filters to only show the information relative to your test process. Process Monitor should be able to tell you when your process fails to find a file/library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a load of php templates which uses a custom translate function __,
I have a user control which contains the following code: <form id=CurrencyForm method=post runat=server>
I have a VS 2010 Load test solution that contains quite a web tests
I have a java package which contains all my test case classes. Each class
I have 2 load balanced web servers. My application is using the SQL Server
I have this database which contains a varchar. I want to know which records
I have an assembly which contains several UserControl objects that I want to be
I have been looking for a tool to load test my django application. I
I have a ini file which contains some sample values like: [Section1] Value1 =
I have a div which contains data. I would like when a user clicks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.