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,526 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
Comment Utility
This should help:
stackoverflow.com/questions/3244464/how-to-solve-warning-referenced-assembly-targets-a-different-processor-than-the
0
 

Author Comment

by:MISSSB
Comment Utility
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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

762 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

10 Experts available now in Live!

Get 1:1 Help Now