?
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
Medium Priority
?
1,983 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 1500 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

Docker-Compose to Simplify Multi-Container Builds

Our veteran DevOps Author takes you through how to build a multi-container environment, managed with a single utility in order to simplify your deployments.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
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.
The viewer will learn how to implement Singleton Design Pattern in Java.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Suggested Courses

752 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