log4net.dll' targets a different processor than the application.

Posted on 2014-08-04
Last Modified: 2016-09-13
When I build a solution in C# in Visual Studio 2012 I get a warning :
Referenced assembly 'C:\Windows\assembly\GAC_64\log4net\\log4net.dll' targets a different processor than the application.

Is there some way around this?

Question by:machine_run
    LVL 35

    Accepted Solution

    From the path (GAC_64) we can conclude that your dll is a 64-bit version. Either you need to make your app 64-bit, i.e. change your target CPU to x64 or else get a 32-bit version of log4net.
    To change "target CPU" go to Project Properties, go to Compile tab , click Advanced Compile Option, then set your target CPU to x64.
    Note: By default target CPU="Any CPU"
    LVL 1

    Author Closing Comment


    Expert Comment

    by:Ali Ali
    My question is incase I select x64, can I install on PC that has 32bit OS? "The software that I developed"

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now