Solved

Cannot run VS 2012 Created App on 32 bit OS

Posted on 2014-04-01
6
396 Views
Last Modified: 2014-04-02
Hi All I created a 32 Bit App (Win32 Configuration) on VS 2012 on my 64 bit Win7 machine.

Obviously the app works fine on that machine, but when I went to run the app from Command Line on my 32 bit Server it tells me "This is not a valid Win32 Application" and say 'Access Denied" in the command window.

After reading many threads it says to make sure that the VS config is set to "x86" or 'AnyCPU" however, VS2012 does not have these options. They only have x64 and Win32 which I am using.

I am not sure what could be causing this error.

Any ideas?

Thanks
0
Comment
Question by:tr57285
6 Comments
 
LVL 24

Expert Comment

by:chaau
ID: 39971314
What OS is your Win32 server?
0
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 39971323
you can Add x86 using Configuration Manager. follow below steps

1) Right Click on Solution and Click on Properties

2) Click on Configuration Manager Button

3) Click on Platform Combo Box.

4) There is New Option in Platform ComboBox.

5) It will open New Project Platform Window. you need to select x86 value from New Platform ComboBox.

6) Click OK Button.
0
 
LVL 24

Accepted Solution

by:
chaau earned 500 total points
ID: 39971338
@Kalpesh Chhatrala: I think Win32 and x86 are the same. The problem is most likely because the OP's Win32 server is actually a Windows 2003 server. In this case the OP needs to select a v110_xp toolset, as it is described in this link. That is why I have asked the author what OS he/she is trying to target
0
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.

 

Author Comment

by:tr57285
ID: 39971396
The is is server 2003 yes
0
 
LVL 24

Expert Comment

by:chaau
ID: 39971405
Then the solution is quite simple: Make sure you update your Visual Studio to at least Update 1 and select v110_xp toolset as per the link I have provided in my previous post
0
 
LVL 86

Expert Comment

by:jkr
ID: 39972685
I've also seen this when there is a problem with the side-by-side assembly configuration. Try running your app under Dependency Walker's (www.dependencywalker.com) "Profile" mode to see if that is the case.
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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.

932 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