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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:03:17+00:00 2026-06-03T05:03:17+00:00

I wrote a wrapper class for log4net. This wrapper class works correctly with asp.net

  • 0

I wrote a wrapper class for log4net. This wrapper class works correctly with asp.net web application. And now I am trying to test my wrapper class methods using NUNIT.
In wrapper class project, I set “Copy Local” to True for log4net DLL. Both NUNIT project and wrapper class are using log4net 1.2.10.0.

This wrapper class works correctly with my separate asp.net web project but some how does not work with my nunit test project.

When I try to run a basic test, I get the following exception

System.BadImageFormatException : Could not load file or assembly
‘log4net, Version=1.2.10.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304’ or one of its dependencies. An
attempt was made to load a program with an incorrect format.

I am running these test within Resharper for VS2010

UPDATE

Just updated my wrapper and test projects with log4net.dll version 1.2.11.0 and every thing starts to work magically!!! I don’t know how this latest version fix this problem where 1.2.10.0 kept failing

  • 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-03T05:03:19+00:00Added an answer on June 3, 2026 at 5:03 am

    It seems that you are loading a 32-bit DLL on a 64-bit system. You shall build your tests DLL targetting a 32-bit architecture.

    Process is described in existing question: Using a 32 bit dll on a 64 bit machine

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

Sidebar

Related Questions

I wrote a really basic wrapper class for Highrise's API. It works perfectly for
I wrote some wrapper which has another object as an attribute. This wrapper proxies
I'm trying to write a wrapper around Image_Graph bar charts. I actually wrote the
I wrote a wrapper class around libpcap for python3 but I'm struggling to find
I'm using the c++ STL heap algorithms, and I wrote a wrapper class around
i wrote an array wrapper class PersonArray which can contain objects of a certain
I'm having this very odd issue while trying to serialize a class for logging
All, I wrote the following wrapper that extends Zend_Db class to provide db connectivity
I wrote a small Server class which basically is a TcpListener wrapper and ThreadPool
I'm trying to write a simple database wrapper class. I've written a method like

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.