Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2014-08-04
Medium Priority
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 36

Accepted Solution

Miguel Oz earned 2000 total points
ID: 40240478
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"

Author Closing Comment

ID: 40249402

Expert Comment

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

810 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