Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to send the report for error on application loading?
Message
De
13/01/2009 15:47:46
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Divers
Thread ID:
01373319
Message ID:
01373363
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
>Here is a common scenario.
>
>On user PC the application is not loading throwing a standard error message (send error report /do not send/debug). This message appears before the code is implemented, and it is visible only for user. And even user hit “Send” button, then the report will go to abstract “helpdesk”, and not necessarily to the developer.
>
>If the user PC is available to me, then I can debug there and see what is missing (it may be some dlls/references that were not copied into application directory, limited user privileges to access folders or SQL Server, etc.)
>
>Had it happened during the code execution, then I would get the error message and description via email (following onerror or try&catch routine), but the code is not yet started.
>
>How do you handle this situation?

One thing you can do is wrap your entire application in a CheckEnvironment() function, which checks that everything it needs is available before the "guts" of the program start. This can be added to your existing code, or implemented as a "launcher" program. As a side note to this, you could code defensively: just because, in a regular installation, a file is *supposed* to be in a given location and accessible with certain privileges, doesn't mean it always *will* be.

However, in the general case the installation or privileges can be so screwed up that nothing will load e.g. bad or missing runtimes. If your error-reporting code, no matter how defensively written, won't load, then you're stuck. One way to approach that is to make available a troubleshooting web page and/or wiki.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform