application created on vista using vb.net does not run on my xp computer!!
-
Dave, Thanks for your response. I did "build solution", then copied all the files in MyApplication\...bin\release folder from Vista machine to XP machine, run the MyApplication.exe file and got the same error. Then I tried the same with MyApplication\...bin\debug folder. Same error. If the application is developed on XP machine and I copy bin\release folder to another XP machine, the program runs just fine. The error comes up when the files are copied from Vista to XP computer. So, I dont think it the error is linked to inno setup. Do you have any suggestions on how to solve this problem. How can I distribute my application developed on Vista to XP customers?
Chun2 wrote:
I did "build solution", then copied all the files in MyApplication\...bin\release folder from Vista machine to XP machine, run the MyApplication.exe file and got the same error. Then I tried the same with MyApplication\...bin\debug folder. Same error. If the application is developed on XP machine and I copy bin\release folder to another XP machine, the program runs just fine. The error comes up when the files are copied from Vista to XP computer.
OK. That's not what your original post implied. If you've copied the entire Debug folder over to the XP machine, it should have worked. Does the code compiled on XP and copied over to Vista work?? Is either one of these machines a 64-bit copy of Windows? Do all machines involved (XP and Vista) have .NET Framework 2.0 Service Pack 1 installed??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Chun2 wrote:
I did "build solution", then copied all the files in MyApplication\...bin\release folder from Vista machine to XP machine, run the MyApplication.exe file and got the same error. Then I tried the same with MyApplication\...bin\debug folder. Same error. If the application is developed on XP machine and I copy bin\release folder to another XP machine, the program runs just fine. The error comes up when the files are copied from Vista to XP computer.
OK. That's not what your original post implied. If you've copied the entire Debug folder over to the XP machine, it should have worked. Does the code compiled on XP and copied over to Vista work?? Is either one of these machines a 64-bit copy of Windows? Do all machines involved (XP and Vista) have .NET Framework 2.0 Service Pack 1 installed??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008I tried copying the folders after you suggest that problem may be with Inno Setup. If I copy the entire bin\debug folder from XP to Vista, the application runs without any problem. I am using 3 computers. 1) One laptop with XP home - for testing the application developed on XP and Vista. 2) A Desktop with XP pro and VS 2005 installed. 3) The laptop which I use for developing applications. It has Vista Business edition and VS 2005. All computers have 32-bit copy of windows. I checked in Add/remove programs and verified that I have .net 2.0 with SP1 on both XP machines. Surprisingly, I could not find .net 2.0 SP1 on Vista laptop! I assumed that If I have VS2005 and my program requires .net 2.0 to run, I would have .net 2.0. Also, the installation file I created, automatically install .net 2.0, if it was not installed already. So I think it must be installed on Vista machine, but I cant find it! Do I need to install .net 2.0 sp1 on vista machine.. i m confused. How can I run application developed on XP with .net 2.0 sp1 on Vista machine if it doesnot have .net 2.0?
modified on Friday, April 4, 2008 1:28 PM
-
I tried copying the folders after you suggest that problem may be with Inno Setup. If I copy the entire bin\debug folder from XP to Vista, the application runs without any problem. I am using 3 computers. 1) One laptop with XP home - for testing the application developed on XP and Vista. 2) A Desktop with XP pro and VS 2005 installed. 3) The laptop which I use for developing applications. It has Vista Business edition and VS 2005. All computers have 32-bit copy of windows. I checked in Add/remove programs and verified that I have .net 2.0 with SP1 on both XP machines. Surprisingly, I could not find .net 2.0 SP1 on Vista laptop! I assumed that If I have VS2005 and my program requires .net 2.0 to run, I would have .net 2.0. Also, the installation file I created, automatically install .net 2.0, if it was not installed already. So I think it must be installed on Vista machine, but I cant find it! Do I need to install .net 2.0 sp1 on vista machine.. i m confused. How can I run application developed on XP with .net 2.0 sp1 on Vista machine if it doesnot have .net 2.0?
modified on Friday, April 4, 2008 1:28 PM
If you're running Visaul Studio 2005, you MUST have the .NET Framework 2.0 installed as well. VS2005 won't run without it. The question is do you have Service Pack 1 for .NET 2.0 installed??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
If you're running Visaul Studio 2005, you MUST have the .NET Framework 2.0 installed as well. VS2005 won't run without it. The question is do you have Service Pack 1 for .NET 2.0 installed??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008No, I don't have SP1. I cannot find Service Pack 1 for .net 2.0 for Vista on the internet. 1)Do I need to install 3.5 framework which comes with .net 2.0 sp1 for vista 2)I came across "Microsoft® Visual Studio® 2005 Express Editions Service Pack 1", is it necessary to install this SP too?
modified on Friday, April 4, 2008 2:34 PM
-
No, I don't have SP1. I cannot find Service Pack 1 for .net 2.0 for Vista on the internet. 1)Do I need to install 3.5 framework which comes with .net 2.0 sp1 for vista 2)I came across "Microsoft® Visual Studio® 2005 Express Editions Service Pack 1", is it necessary to install this SP too?
modified on Friday, April 4, 2008 2:34 PM
Chun2 wrote:
No, I don't have SP1. I cannot find Service Pack 1 for .net 2.0 on Vista.
It's not "for Vista", it's for the .NET Framework 2.0. Here[^]
Chun2 wrote:
1)Do I need to install 3.5 framework which comes with .net sp1 for vista
No.
Chun2 wrote:
which comes with .net sp1 for vista
There's no such thing as ".net sp1 for Vista".
Chun2 wrote:
2)I came across "Microsoft® Visual Studio® 2005 Express Editions Service Pack 1", is it necessary to install this SP?
No. That's the service pack for Visual Studio 2005 Express. It has nothing to do with Vista or .NET 2.0. *** UPDATE *** It turns out that the reason the normal SP1 pack won't work on Vista is because Vista uses a different Update installation engine. Installing .NET Framework 3.5[^] also installs the SP1 for .NET 2.0, as well as .NET 3.0 with it's SP1. That link downloads the installer that works on Vista. What a pain...
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
I am using VS2005, .net framework 2.0. The program is used to collect and display data from a uSB DAQ. I created the installation file using Inno SetUP. I can install and run the program on any Vista machine without any problem. If I try to run this program on XP machine, it comes up with a general error: "MyApplication" has encountered a problem and needs to close. We are sorry for the inconvenience. It installs without any probem, the error comes up when i run the application. If I copy and run the same program on a XP machine and create an installation file, use this file to install the program on XP computer, it runs just fine. Does that mean I cannot develop programs on Vista and distribute it to XP customers?
-
Chun2 wrote:
No, I don't have SP1. I cannot find Service Pack 1 for .net 2.0 on Vista.
It's not "for Vista", it's for the .NET Framework 2.0. Here[^]
Chun2 wrote:
1)Do I need to install 3.5 framework which comes with .net sp1 for vista
No.
Chun2 wrote:
which comes with .net sp1 for vista
There's no such thing as ".net sp1 for Vista".
Chun2 wrote:
2)I came across "Microsoft® Visual Studio® 2005 Express Editions Service Pack 1", is it necessary to install this SP?
No. That's the service pack for Visual Studio 2005 Express. It has nothing to do with Vista or .NET 2.0. *** UPDATE *** It turns out that the reason the normal SP1 pack won't work on Vista is because Vista uses a different Update installation engine. Installing .NET Framework 3.5[^] also installs the SP1 for .NET 2.0, as well as .NET 3.0 with it's SP1. That link downloads the installer that works on Vista. What a pain...
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Just a crazy shot in the dark and hopefully it wasn't already asked: Is the Vista computer 64-bit and the XP computer 32-bit? A 32-bit executable from XP would run on the 64-bit Vista but not vice-versa.
-
Chun2 wrote:
No, I don't have SP1. I cannot find Service Pack 1 for .net 2.0 on Vista.
It's not "for Vista", it's for the .NET Framework 2.0. Here[^]
Chun2 wrote:
1)Do I need to install 3.5 framework which comes with .net sp1 for vista
No.
Chun2 wrote:
which comes with .net sp1 for vista
There's no such thing as ".net sp1 for Vista".
Chun2 wrote:
2)I came across "Microsoft® Visual Studio® 2005 Express Editions Service Pack 1", is it necessary to install this SP?
No. That's the service pack for Visual Studio 2005 Express. It has nothing to do with Vista or .NET 2.0. *** UPDATE *** It turns out that the reason the normal SP1 pack won't work on Vista is because Vista uses a different Update installation engine. Installing .NET Framework 3.5[^] also installs the SP1 for .NET 2.0, as well as .NET 3.0 with it's SP1. That link downloads the installer that works on Vista. What a pain...
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008I installed .Net framework 3.5 on the Vista computer, restarted the computer, complied the code again, copied the debug folder to XP computer and then tried to run the application. I am still getting the same error. Under Control Panel --> Programs and features --> it shows framework 1.1, framework 1.1 hotfix (KB929729) and framework 3.5 Any suggestions plzz???
-
Thank you for responding. all the computers are 32-bit and have .net 2.0. However, XP pc had SP1 for .net 2.0 but vista didnot. I will try installing .net 3.5 on Vista and see if it solves the problem.
Hi I hate to tell you but installing .net 3.5 doesn't help. I'm having the same problem. I've written my program on a vista machine, using vb 2005 and Inno step to install. Like you I've copied over all relevant files etc for install. Works fine on Vista machines but, is using .net 3.5 automatically to compile even though I'm installin .net 2.0. Apparently, Vista automatically updated to .net 3.5 in an upgrade. What I'm trying to find out is how I can overrun 3.5 and tell the computer to use 2.0? Complicated, just so you know you're not on your own.:confused:
Kris MCP