Solved

Cannot run VS 2012 Created App on 32 bit OS

Posted on 2014-04-01
6
400 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
[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
6 Comments
 
LVL 25

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 25

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

740 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