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,598 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do ASP.NET and MVC work together? 4 29
vb.net checkbox 7 41
SQL Login 17 40
execute SQL Stored Procedure 1000 times from vb.net 3 26
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

867 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

15 Experts available now in Live!

Get 1:1 Help Now