Solved

Cannot run VS 2012 Created App on 32 bit OS

Posted on 2014-04-01
6
394 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

747 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

12 Experts available now in Live!

Get 1:1 Help Now