64-bit beginner can't get 32- or 64-bit .NET apps to run on 64-bit machine

Hi,

Please forgive this dumb question, but I *just* got my 64-bit (AMD Athlon X2) machine two days ago and am trying to test .NET apps under it. I've gone to Windows Update and installed all available updates. I'm running Windows xp Professional x64 Edition.

The problems I have are this:

I used Visual Studio 2005 Release Candidate on my other, 32-bit machine to build 32-bit and 64-bit binaries of a little app that does nothing but show the size of an IntPtr when the user clicks a button.

I copy the 64-bit app to my 64-bit machine and it crashes on startup. I suspect because I don't have the .NET 2.0 framework on that machine. Where do I get the .NET 2.0 framework for 64-bit?

Second, I copy the 32-bit app to my 64-bit machine and it also crashes on startup. I *should* have the 32-bit .NET framework on that machine as I downloaded all updates from Microsoft Update, right?

Any help would be greatly appreciated. Thanks in advance...

-Eric Harmon

[978 byte] By [EricHarmon] at [2008-3-1]
# 1
.NET 2.0 is not included in the Windows Updates yet. You'll need to go online and download it. Once you download .NET 2.0 redistributable (http://www.microsoft.com/downloads/details.aspx?FamilyID=7abd8c8f-287e-4c7e-9a4a-a4ecff40fc8e&displaylang=en for 32 bit, http://www.microsoft.com/downloads/details.aspx?FamilyId=DE4539CF-5D5C-4981-B27B-8AE747A7EA98&displaylang=en for 64 bit) you should be fine. I don't have a 64 bit computer, but I'm guessing you'll only need to install the 64 bit .NET 2.0 package.

Hope this helps,
Josh Lindenmuth

JoshLindenmuth at 2007-9-9 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....
# 2
Josh is correct you do need to install the .Net 2.0 redist. The 64bit .Net 2.0 redist packages both the 32bit and 64bit frameworks, so you will only need to install the 64bit package.

Jeff

JeffSchwartzmsft at 2007-9-9 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....
# 3
I am even more of a beginner than that. I can't get the 64-bit version of windows to run from the cd. It gets all the way to the point of starting windows................then it restarts and goes to the 32-bit version that was previously installed. What am I doing wrong>>>
OZ83 at 2007-9-9 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....
# 4
Does this just install the 32 and 64 bits of .Net 2.0 or does it include the 32 bit .Net 1.1?

Can I install the 32 bit .Net 1.1 redistributal pack on my 64 bit Windows and run it OK?

JoeBrazell at 2007-9-9 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....
# 5
I have installed .Net framwork 1.1 on 64-bit Windows and it works fine. When you are installing it, it will ask you to copy a line and paste it on the Run window, installation will proceed and you will have the 1.1 framework installed.
Keep in mind that most 1.1 assemblies will run perfectly fine under the 32-but 2.0 framework on Windows 64-bit; so there really is no need to install 1.1 unless you *have* to.
sabor at 2007-9-9 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....
# 6
With all the Windows-64 bit installations I have done, you just pop in the CD, select to boot from it when prompted and you are good to go.
If you are having problems booting from it, I would suspect the following:
  1. Error while burning ISO, thus creating a non-functional Windows boot disk
  2. BIOS is not set to boot from CD as an option
  3. Your hardware is not 64-bit
Please check these and get back to me.
sabor at 2007-9-9 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....
# 7
Also note (and I may be wrong) that apps build with beta 1, beta 2 or the RC will have been built to use the specific version of the .NET Framework that was in those products.
I havent tried it, but trying to execute an app built with RC or a beta on a machine that has only had the final release of VS and .NET installed, will fail.
By default (so far as I understand) .NET enforces versions rigidly, so if the app was built with some (beta) framework classes version 2.0.1.003 (for example) and the final release of the .NET framework is 2.0.1.0105 then it wont load, the app needs the EXACT same version.
Every app (assembly) explicitly specifies the version number for EVERY other assembly that it depends upon, and it is this version and ONLY this version that it will use.
You need to rebuild the app against the current release version of .NET in order to get what you want.
This policy can be changed, but by default it is rigid (I think).
Hugh
Hugo at 2007-9-9 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....

.NET Development

Site Classified