473,511 Members | 14,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.NET program will not run unless Visual Studio is installed

I wrote a simple VB.NET program that runs on a computer ONLY if I install
Visual Studio 2003 on that computer. The computer already had .NET Framework
1.1 installed. If it is run on a computer without VS, I get an unhandled
exception error trying to start the program.
I obviously cannot install VS .NET on all the computers that need to run
this program. Any ideas on what is missing from the computers that VS .NET
installs that makes the program work?
Nov 9 '05 #1
5 5035
What is this exception ? If needed add an
ApplicationException.UnhandledException to get the full description for this
exception. From there it should be easy to find out what happens...

--
Patrice

"Jeff" <Je**@discussions.microsoft.com> a écrit dans le message de
news:FE**********************************@microsof t.com...
I wrote a simple VB.NET program that runs on a computer ONLY if I install Visual Studio 2003 on that computer. The computer already had .NET Framework 1.1 installed. If it is run on a computer without VS, I get an unhandled
exception error trying to start the program.
I obviously cannot install VS .NET on all the computers that need to run this program. Any ideas on what is missing from the computers that VS ..NET installs that makes the program work?

Nov 9 '05 #2
This may be a silly question, and forgive me if it doesn't apply, but did you
just copy the .exe onto another computer?
You need to install the application

"Jeff" wrote:
I wrote a simple VB.NET program that runs on a computer ONLY if I install
Visual Studio 2003 on that computer. The computer already had .NET Framework
1.1 installed. If it is run on a computer without VS, I get an unhandled
exception error trying to start the program.
I obviously cannot install VS .NET on all the computers that need to run
this program. Any ideas on what is missing from the computers that VS .NET
installs that makes the program work?

Nov 9 '05 #3
I made a deployment and it worked! It added the dependencies that were
required to the install package. Thanks for the advice!

"Taras" wrote:
This may be a silly question, and forgive me if it doesn't apply, but did you
just copy the .exe onto another computer?
You need to install the application

"Jeff" wrote:
I wrote a simple VB.NET program that runs on a computer ONLY if I install
Visual Studio 2003 on that computer. The computer already had .NET Framework
1.1 installed. If it is run on a computer without VS, I get an unhandled
exception error trying to start the program.
I obviously cannot install VS .NET on all the computers that need to run
this program. Any ideas on what is missing from the computers that VS .NET
installs that makes the program work?

Nov 9 '05 #4
Actually I did just copy the .exe file to another computer. I've written
other .NET applications where the entire program is compliled into the .exe,
so there are no other supporting files.
Maybe this is an exception, but how do I find out what supporting files
are required.

"Taras" wrote:
This may be a silly question, and forgive me if it doesn't apply, but did you
just copy the .exe onto another computer?
You need to install the application

"Jeff" wrote:
I wrote a simple VB.NET program that runs on a computer ONLY if I install
Visual Studio 2003 on that computer. The computer already had .NET Framework
1.1 installed. If it is run on a computer without VS, I get an unhandled
exception error trying to start the program.
I obviously cannot install VS .NET on all the computers that need to run
this program. Any ideas on what is missing from the computers that VS .NET
installs that makes the program work?

Nov 9 '05 #5
The .NET framework were installed ?

A .NET application needs the .NET runtime to be installed.

You may have to add other files depending on what your code uses (for
example check the addtional "references" you may have added to your project
and that are not part of the .NET Framework).

--
Patrice

"Jeff" <Je**@discussions.microsoft.com> a écrit dans le message de
news:A5**********************************@microsof t.com...
Actually I did just copy the .exe file to another computer. I've written other .NET applications where the entire program is compliled into the ..exe, so there are no other supporting files.
Maybe this is an exception, but how do I find out what supporting files
are required.

"Taras" wrote:
This may be a silly question, and forgive me if it doesn't apply, but did you just copy the .exe onto another computer?
You need to install the application

"Jeff" wrote:
I wrote a simple VB.NET program that runs on a computer ONLY if I install Visual Studio 2003 on that computer. The computer already had .NET Framework 1.1 installed. If it is run on a computer without VS, I get an unhandled exception error trying to start the program.
I obviously cannot install VS .NET on all the computers that need to run this program. Any ideas on what is missing from the computers that VS ..NET installs that makes the program work?

Nov 10 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
18593
by: Dave | last post by:
I created a program using VB6 under WIN 98. The program uses an ado database. When I use the package and deployment program in VB6 on this program and then install it on a machine with XP Pro on...
9
1795
by: I_AM_DON_AND_YOU? | last post by:
I am creating small project comprising of 10 forms. On all of the forms there are basic controls like menus, buttons, lists etc. I am (only) using the system.io namespace for this project. I am...
5
461
by: Jeff | last post by:
I wrote a simple VB.NET program that runs on a computer ONLY if I install Visual Studio 2003 on that computer. The computer already had .NET Framework 1.1 installed. If it is run on a computer...
17
6413
by: UJ | last post by:
Is there any way for a windows service to start a windows program ? I have a service that will need to restart a windows app if it needs to. TIA - Jeff.
7
1314
by: Hardy &&& | last post by:
Please can any body tell me: How can I operate (or deliver) the " Visual C++.NET ", from its mother program " MS Visual Studio 2005"?? A beginner needs Help. Thank you all....
6
2923
by: ulillillia | last post by:
I've been following the tutorial here to learn Windows programming (along with the help file from the Windows Platform SDK): http://www.cprogramming.com/tutorial/opengl_windows_programming.html ...
14
7514
by: Ben Voigt | last post by:
Under certain circumstances I get: First-chance exception at 0x7c812a5b (kernel32.dll) in LTMGUI.exe: 0xC0020001: The string binding is invalid. First-chance exception at 0x7c812a5b (kernel32.dll)...
4
1232
by: John Bailo | last post by:
Can I use the .NET 3.0 framework with Visual Studio 2003?
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.