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,644 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
  • 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
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 …
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.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

786 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