topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 9:50 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • View Profile
    • Donate to Member
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?

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #1 on: July 03, 2014, 08:39 PM »
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
« Last Edit: July 03, 2014, 08:51 PM by Shades »

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #2 on: July 03, 2014, 08:41 PM »
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
    • View Profile
    • Donate to Member
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #3 on: July 03, 2014, 08:46 PM »
Is there a relatively painless way to downgrade,  or would I have to manually uninstall 4.5, download 2.0, and install it?

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,646
    • View Profile
    • Donate to Member
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #4 on: July 03, 2014, 08:53 PM »
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
    • View Profile
    • Donate to Member
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #5 on: July 03, 2014, 08:56 PM »
Is it possible to install 2.0 alongside 4.5 and then tell Visual Studio Express which version to use in a given project?

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,646
    • View Profile
    • Donate to Member
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #6 on: July 03, 2014, 09:06 PM »
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,922
    • View Profile
    • Donate to Member
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #7 on: July 03, 2014, 09:08 PM »
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.

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • View Profile
    • Donate to Member
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #8 on: July 03, 2014, 09:41 PM »
Aha. I already had 2.0.  I just went to the Application tab under Project Properties and specified 2.0 instead of 4.5.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #9 on: July 04, 2014, 01: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

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • View Profile
    • Donate to Member
Re: friend can't run progs made with .net 4.5 on his XP machine
« Reply #10 on: July 04, 2014, 07:52 AM »
SOLVED.

Thanks, all.