Trouble with built application.

T

Ty

I have created two applications One is simply a system tray app and
the other is a program that interacts with the first app through TCP.

The system tray app is no problem. I can built is and place it on a PC
with no trouble.

Today for the first time I built the main app and then copied it to a
test PC and then tried to run it. The program never loads. I get a
windows error reporting window. In the error details it has
system.invalidoperationexception

I went back and made sure there was a Try statement in the load event
with a messagebox to show the error, but it never fires. I went back
in and placed a messagebox as the very first line in the load event. I
run the program and still no messagebox so it seems that it is
crashing before the load event is even fired.

If I run the built app on the same PC I wrote it on it runs fine.

Not sure where to go from here.

My development machine is a Vista Ultimate using Visual Studio 2008
standard .net 3.5 framework.

The test PC is a XP Professional with .net 3.5 framework. Which runs
the system tray app built on the same development machine.

Thanks,

Ty
 
J

Joe Cool

I have created two applications One is simply a system tray app and
the other is a program that interacts with the first app through TCP.

The system tray app is no problem. I can built is and place it on a PC
with no trouble.

Today for the first time I built the main app and then copied it to a
test PC and then tried to run it. The program never loads. I get a
windows error reporting window. In the error details it has
system.invalidoperationexception

I went back and made sure there was a Try statement in the load event
with a messagebox to show the error, but it never fires. I went back
in and placed a messagebox as the very first line in the load event. I
run the program and still no messagebox so it seems that it is
crashing before the load event is even fired.

If I run the built app on the same PC I wrote it on it runs fine.

Not sure where to go from here.

My development machine is a Vista Ultimate using Visual Studio 2008
standard .net 3.5 framework.

The test PC is a XP Professional with .net 3.5 framework. Which runs
the system tray app built on the same development machine.

Are you just copying the release bin folder contents or are you
installing it with a setup project? It is mucho safer to use a setup
project.
 
T

Ty

Are you just copying the release bin folder contents or are you
installing it with a setup project? It is mucho safer to use a setup
project.- Hide quoted text -

- Show quoted text -

I am copying the built files. Doing some more looking It seems to me
that the issue is either a control or a reference that it the issue.
The only thing I am using different from the system tray app is a
custom progress bar and the shape control so not sure if it is one of
those.

Ty
 
T

Ty

I found that the issue is at least the MS Power Tools which is where
the shape control comes from. The problem now is how in the heck do I
include it in the compiled app. There is no setup and deployment in
the Standard version of VS 2008 so I ma going to try to use the
publish method. Let you know how it turns out.

Ty
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top