Any chance you're using any ActiveX controls or something else where
different machines might not have the appropriate setup prior to running
your application?

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Knowlton, Gerald
F.
Sent: Monday, January 29, 2007 2:31 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] System.InvalidOperationException

Hello everyone,

     I have this application that I built using VS2005. It runs OK on my
development machine using either the IDE or the exe that VS2005
produces.

     It, however, does not run on my test machine. As soon as I launch
the application on the test machine, I get the Microsoft "<program> has
encounted an error and needs to be closed...." error message. The
initial error is a System.InvalidOperationException.

I put some code in the source that would print out to a text file what
methods had work and where it stopped working. It appears that it stops
working in the application's first form's InitializeComponent method. In
other words, I don't believe it gets inside the method.

      Anyone seen anything like this and if so, any suggestions on how
to solve this problem.


BTW - I move the executable and all files to another machine that has
VS2005 installed and the program works flawlessly. It just doesn't on
the client's machine. What a bugger!


Thanks for any help.

Best regards,


Jerry Knowlton

===================================
This list is hosted by DevelopMentor.  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.14/657 - Release Date: 1/29/2007
9:04 AM


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.14/657 - Release Date: 1/29/2007
9:04 AM

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to