473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error Handling Question

I have an application running on Windows Server 2003 that was installed
using an MSI package. Every once in a while (maybe once a week), I'll see,
by looking at the database that the app is not reporting as it should.

When I go back and look at the machine, the app is still running, but
there's a dialog open telling me about enabling JIT debugging. The problem
is that it doesn't really detail what the error is at all, it just tells me
about the loaded assemblies.

This is production critical information and it causes a lot of problems if
the app is down. So I guess my question is - is there a way to handle errors
at the application level? Or perhaps someone could explain to me the best
way to deal with this situation. I realized I could enable JIT debugging but
if there's any other way I'd love to hear about it.

Thanks a lot,

Jason
Nov 20 '05 #1
5 1431
Cor
Hi Jason,
This is production critical information and it causes a lot of problems if
the app is down. So I guess my question is - is there a way to handle errors at the application level? Or perhaps someone could explain to me the best
way to deal with this situation. I realized I could enable JIT debugging but if there's any other way I'd love to hear about it.

There are a lot of posibilities for error handling in the vb.net language,
look for it to the
Try, end try, catch and finally statements.

I hope this brings you on the route

Cor
Nov 20 '05 #2
* "Jason MacKenzie" <jm***************@formet.com> scripsit:
I have an application running on Windows Server 2003 that was installed
using an MSI package. Every once in a while (maybe once a week), I'll see,
by looking at the database that the app is not reporting as it should.

When I go back and look at the machine, the app is still running, but
there's a dialog open telling me about enabling JIT debugging. The problem
is that it doesn't really detail what the error is at all, it just tells me
about the loaded assemblies.


What does it tell you?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
Perhaps I wasn't clear in my question. I use try..catch extensively
throughout the application. Something though is getting past that. What I
want to know is, is there a way an the application level of trapping any
errors that get through (or any other methodology, for that matter)? The
dialog I see on the screen doesn't really tell me anything.
"Cor" <no*@non.com> wrote in message
news:eJ**************@TK2MSFTNGP09.phx.gbl...
Hi Jason,
This is production critical information and it causes a lot of problems if the app is down. So I guess my question is - is there a way to handle

errors
at the application level? Or perhaps someone could explain to me the best way to deal with this situation. I realized I could enable JIT debugging

but
if there's any other way I'd love to hear about it.

There are a lot of posibilities for error handling in the vb.net language,
look for it to the
Try, end try, catch and finally statements.

I hope this brings you on the route

Cor

Nov 20 '05 #4
It tells me about the loaded assemblies and then it tells me the process to
enable JIT debugging.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bn*************@ID-208219.news.uni-berlin.de...
* "Jason MacKenzie" <jm***************@formet.com> scripsit:
I have an application running on Windows Server 2003 that was installed
using an MSI package. Every once in a while (maybe once a week), I'll see, by looking at the database that the app is not reporting as it should.

When I go back and look at the machine, the app is still running, but
there's a dialog open telling me about enabling JIT debugging. The problem is that it doesn't really detail what the error is at all, it just tells me about the loaded assemblies.


What does it tell you?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #5
Cor
Hi Jason,
It does if you don't catch the execption.
by catch ex as exception (for the kind of exception, this is the standard
one, you have to look for the methods to see all exception possibilities)
Then you can say
messagebox.show(ex)

You can catch more exceptions, but watch to set this general one as the
last.

I don't know if this anwers your question ?

Cor

Nov 20 '05 #6

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

Similar topics

1
by: Bill S. | last post by:
Hi, I a stored procedure that inserts a record into a table as below. The insert works OK, but if the insert violates a unique indewx constraint on one of the columns, the proc terminates...
8
by: Erencans | last post by:
Hi to all, I want to error handling in ASP. But i think that ASP is not enough for error handling. I have got two chance. 1. I can prapare an error page and control throught IIS. 2. I can use on...
4
by: James Radke | last post by:
Hello, I am looking for guidance on best practices to incorporate effective and complete error handling in an application written in VB.NET. If I have the following function in a class module...
3
by: Stefan Johansson | last post by:
Hi all I'am moving from Visual Foxpro and have a question regarding "best practice" error handling in vb .net. In VFP I have always used a "central" error handling object in order to have a...
10
by: Anthony England | last post by:
(sorry for the likely repost, but it is still not showing on my news server and after that much typing, I don't want to lose it) I am considering general error handling routines and have...
5
by: csgraham74 | last post by:
Hi guys, Basically i have been developing in dotnet for a couple of years but ive had a few issues in regards to error handling. For example - I have a class that i call passing in a stored...
1
by: pob | last post by:
>From a form I have some code that calls 4 modules frmMain 1 mod 2 mod 3 mod 4 mod If mod 1 experiences an error the error handling works fine within mod 1 and writes out the error to a...
35
by: jeffc226 | last post by:
I'm interested in an idiom for handling errors in functions without using traditional nested ifs, because I think that can be very awkward and difficult to maintain, when the number of error checks...
2
by: Omar Abid | last post by:
Reason of this project: Error handling is one of the most difficult thing that may afford a programmer. It isn't as easy as you think and handling errors in a program some time can make errors...
16
by: john6630 | last post by:
Coming from the .Net world, I am used to the try...catch...finally approach to error handling. And PHP 5 now supports this approach. But I am not clear what happens to unhandled errors/exceptioins?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.