DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: friend can't run progs made with .net 4.5 on his XP machine  (Read 9,358 times)

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
I'm trying to collaborate with a friend on an idea for an app. Im building on a Win 7 machine using C# on top of .Net 4.5. He's running WinXP and gets a Not a valid win32 app message when he tries to run my program. Even when I use the x86 build configuration. I think it's because .Net 4.5 is for Vista forward (per Stackoverflow.com). Any solution so he can run my progs?
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,954
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #1 on: July 04, 2014, 01:39 AM »
Besides upgrading the OS, not really. See MSDN article or this even more devastating one from Channel9.

I did more reading, and it might be so that you can compile your .net 4.5 code in Mono, and the result should still work on XP. That still leaves the question: do you want to have such a mix-n-match of IDE's on your build PC?


* edit: added Mono suggestion
The easy path is usually downhill...
« Last Edit: July 04, 2014, 01:51 AM by Shades »

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #2 on: July 04, 2014, 01:41 AM »
Shades is right. XP won't run 4.5. Upgrade OS, or downgrade required .NET version. :(
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #3 on: July 04, 2014, 01:46 AM »
Is there a relatively painless way to downgrade,  or would I have to manually uninstall 4.5, download 2.0, and install it?
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,652
    • Cody Award
    • Participated in NANY Challenge Five Times
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #4 on: July 04, 2014, 01:53 AM »
Is there a relatively painless way to downgrade,  or would I have to manually uninstall 4.5, download 2.0, and install it?

IIRC It should just be a (.NET dependency version) dropdown menu (which defaults to the highest available) in the project creation wizard. In the few times I've gone that (C#) route I always pick the oldest version that will give me the features I'm after. How to change it after the project is created I've not a clue.

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #5 on: July 04, 2014, 01:56 AM »
Is it possible to install 2.0 alongside 4.5 and then tell Visual Studio Express which version to use in a given project?
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,652
    • Cody Award
    • Participated in NANY Challenge Five Times
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #6 on: July 04, 2014, 02:06 AM »
Is it possible to install 2.0 alongside 4.5 and then tell Visual Studio Express which version to use in a given project?

I don't know. I'd assume that 2.0 would have already snuck in there with one of the MS chronically semi-forced Windows updates. But MSVS Pro/Std never seemed to care what was installed, it just listed all the currently available version options.

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,954
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #7 on: July 04, 2014, 02:08 AM »
From this article/blogpost I gather that it might work to have two very different versions of .net installed on your build PC. I'm not so sure how well the "targeting" will work, though.
The easy path is usually downhill...

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #8 on: July 04, 2014, 02:41 AM »
Aha. I already had 2.0.  I just went to the Application tab under Project Properties and specified 2.0 instead of 4.5.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #9 on: July 04, 2014, 06:24 AM »
.Net 2.0, 3.x (avoid using that version btw) and 4.x can happily coexist on a single system. When installing 4.5 on a system where 4.0 already exists, it will be upgraded to 4.5. (Win Vista and later, as said above)
.Net 4.5 is fully backward compatible down to 2.0, except for the new/improved features and, hopefully, for all the bugs in these previous versions :D
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #10 on: July 04, 2014, 12:52 PM »
SOLVED.

Thanks, all.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

Original address: https://www.donationcoder.com/forum/index.php?topic=38335.0