Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2014-08-04
3
Medium Priority
?
4,530 Views
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\1.2.10.0__692fbea5521e1304\log4net.dll' targets a different processor than the application.

Is there some way around this?

TIA
0
Comment
Question by:machine_run
3 Comments
 
LVL 36

Accepted Solution

by:
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"
0
 
LVL 1

Author Closing Comment

by:machine_run
ID: 40249402
THANKS
0
 

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"
0

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