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 8548593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:31:58+00:00 2026-06-11T13:31:58+00:00

I installed NUnit 2.6.1 and trying to run a simple test on Windows 7

  • 0

I installed NUnit 2.6.1 and trying to run a simple test on Windows 7 x64. It causes an exception

An attempt was made to load a program with an incorrect format. You
may be attempting to load an assembly built with a later version of
the CLR than the version under which NUnit is currently running
(2.0.50727) or trying to load a 64-bit assembly into a 32-bit process.

It is pretty weird because nunit.exe.config looks like below

  <?xml version="1.0" encoding="utf-8" ?> 
- <configuration>
- <!-- 
   The GUI only runs under .NET 2.0 or higher. The
   useLegacyV2RuntimeActivationPolicy setting only
   applies under .NET 4.0 and permits use of mixed 
   mode assemblies, which would otherwise not load 
   correctly.


  --> 
- <startup useLegacyV2RuntimeActivationPolicy="true">
- <!--  Comment out the next line to force use of .NET 4.0 
  --> 
- <!--  <supportedRuntime version="v2.0.50727" /> 
  --> 
  <supportedRuntime version="v4.0.30319" /> 
  </startup>
- <runtime>
- <!--  Ensure that test exceptions don't crash NUnit 
  --> 
  <legacyUnhandledExceptionPolicy enabled="1" /> 
- <!--  Run partial trust V2 assemblies in full trust under .NET 4.0 
  --> 
  <loadFromRemoteSources enabled="true" /> 
- <!--  Look for addins in the addins directory for now 
  --> 
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <probing privatePath="lib;addins" /> 
  </assemblyBinding>
  </runtime>
  </configuration>
  • 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-06-11T13:31:59+00:00Added an answer on June 11, 2026 at 1:31 pm

    This doesn’t sound like a problem with NUnit. This sounds like your unit test assemblies are not built for a 32 bit process. Are you sure your unit test assemblies are built for 32 bit? If NUnit is running 32 bit and your assemblies are built at 64 bit (or not built as Any CPU) you’ll get this problem. The calling application determines the bit depth required of the assembly. You can’t use 64 bit dll’s with a 32 bit process and vice versa.

    The only reason I mention this is because your question says you are trying to RUN the test. If NUnit was configured incorrectly it wouldn’t even start.

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

Sidebar

Related Questions

I have NUnit installed at this directory. C:\Program Files\NUnit 2.5.5\bin\net-2.0 I made the directory
I installed TestDriven.Net after installing NUnit. When in VS, I run all tests, they
I am trying to create a NUnit test for a project that uses Ninject.
I have NUnit installed on my machine in C:\Program Files\NUnit 2.4.8\ but on my
I'm trying to install Spring.Testing.NUnit with NuGet, and it's forcing me to update a
I am beginner in .NET, how can I install NUnit test in Visual Studio 2010? I
I have Hudson CI installed on a linux vm and a slave on windows
Summary: I can run unit tests and code-coverage, but the report only includes NUnit
I have a Nant merge task aimed at a nunit test output.xml I have
I'm currently trying to reduce the time taken to compile and unit test projects

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.