Solved

How to get rid of "Referenced assembly 'C:\Windows\assembly\GAC_32\log4net\1.2.10.0__692fbea5521e1304\log4net.dll' targets a different processor than the application"

Posted on 2014-10-01
4
1,861 Views
Last Modified: 2014-10-10
I keep getting this error when I run my application...

"Referenced assembly 'C:\Windows\assembly\GAC_32\log4net\1.2.10.0__692fbea5521e1304\log4net.dll' targets a different processor than the application"

My development is being done in Visual Studio 2013, my PC is a Windows 7 Pro 32bit system. I have set the Target CPU to Any CPU
0
Comment
Question by:MISSSB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:brendonfeeley
ID: 40355458
This should help:
stackoverflow.com/questions/3244464/how-to-solve-warning-referenced-assembly-targets-a-different-processor-than-the
0
 

Author Comment

by:MISSSB
ID: 40355592
I am trying to build the application out to suit both CPUs. Is there any way other than changing to a 32bit application?
0
 
LVL 4

Accepted Solution

by:
brendonfeeley earned 500 total points
ID: 40355610
64-bit compilers are not installed by default on a 32-bit system. You'll need to compile a 32-bit exe and a 64-bit exe.

First, install the 64-bit compilers as described here:
http://social.msdn.microsoft.com/Forums/en-US/f21450f5-b36d-4ea2-9806-f169aff0388d/compiling-for-64-bit-on-a-32-bit-machine?forum=netfx64bit

You should then be able to compile both exes on your 32-bit system.
0
 

Author Comment

by:MISSSB
ID: 40371971
I am using Visual Studio 2013. I don't see the 64bit drivers as an option for install. For now I am going to continue as a 32bit application but I really would love to get it compiled for both options.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video teaches viewers about errors in exception handling.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

696 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