Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2007

Tip: Looking for answers? Try searching our database.

Program not starting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bjarne Nielsen - 24 Aug 2007 14:01 GMT
Hi all

I have developed a program, that runs under .NET framework 2.0. On my own
computer and all the other computers in my company, things run smoothly.

My problem is, that I have installed it at one of our customers, and when I
try to start the program, nothing happens. The program pops up in the job
list, but disappears after about half a second. Nothing visible shows on
the screen.

When I inspect the error log (or whatever it is called in the English
version of Windows), there is an error ".NET Runtime 2.0 Error Reporting
Type : Error " with an error code of 1000.

The problem and computer is at our customer far away, so I have limited
possibilities to try out things on site.

Any suggestions?

Cheers
Bjarne Nielsen
Nicholas Paldino [.NET/C# MVP] - 24 Aug 2007 15:02 GMT
Bjarne,

   Are you sure that the .NET framework 2.0 is installed on the machine you
are trying to run this program on?

   If it is, do you have any logging in your program to catch unhandled
exceptions which could provide some more information?

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi all
>
[quoted text clipped - 18 lines]
> Cheers
> Bjarne Nielsen
Bjarne Nielsen - 24 Aug 2007 16:10 GMT
> Bjarne,
>
[quoted text clipped - 3 lines]
>     If it is, do you have any logging in your program to catch unhandled
> exceptions which could provide some more information?

Thanks for your suggestions

I am sure that .NET framework 2.0 (and 3.0) is installed on the machine.
The OS is WinXP with SP2, as is my own.

I don't get any logging information, so I suspect that the program is
terminated before I get any chance to log anything unexpected. Not that I
do log much in the release version (if any), but I could do that, or give
them a debug version, if that would help. Anyway, I suppose an unhandled
exception would at least give you a dialog box, telling about the unhandled
exception, but I don't even get that.

Cheers
Bjarne Nielsen
Nicholas Paldino [.NET/C# MVP] - 24 Aug 2007 16:26 GMT
Is there any code on startup that you are executing which could be doing
this?  Anything in the constructor of your forms?  Are you using any COM
objects which you might not have registered?

   More information is needed, and I'd advise you to put some logging in
there to find out if your program is even starting up at all.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

>> Bjarne,
>>
[quoted text clipped - 20 lines]
> Cheers
> Bjarne Nielsen
Alun Harford - 24 Aug 2007 18:03 GMT
>> Bjarne,
>>
[quoted text clipped - 15 lines]
> exception would at least give you a dialog box, telling about the unhandled
> exception, but I don't even get that.

Yes, that should happen.
Are you using Application.Exit() or Environment.Exit() around anywhere
in your code?

Alun Harford
Marc Gravell - 24 Aug 2007 20:56 GMT
I have seen similar behavior on a machine that had got its .NET
knickers in a twist. The process would appear and then die. No errors;
no event-log; no fusion log; just no "Main()", even if I reduced it to
"hello world".

I gave up; it was cheaper for us to swap-out the machine (or more
accurately, provide a second machine for the purpose, since the first
had some financial apps installed that would have been a nuicance to
transfer).

Like in your situation, a long drawn out "OK, so that attempt didn't
work; lets try reinstalling these 17 core components (like .NET)" just
wasn't practical.

Marc

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.