Re: Web Services Client Error
- From: "nevyn@xxxxxxxx" <beaunidle@xxxxxxxxx>
- Date: Wed, 5 Mar 2008 23:54:39 -0800 (PST)
Can you post the code you're using to catch the exception? It's unusual, to
say the least, to be unable to catch a .NET exception.
The code below is the only code in the main program. I use this as a
"trap-all" but in this case it does not seem to be getting fired.
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//
// Set up the global data before the application
starts.
//
GlobalData.OptionsFileName = null;
GlobalData.ProductName = null;
GlobalData.UserPreferences = null;
//
Application.Run(new frmMain());
}
catch (Exception ex)
{
StringBuilder message;
message = new StringBuilder();
// Code to build error message and write to log and
message box.
}
The only complication which has just come to mind is threading - am I
correct in assuming that by wrapping the whole program in a block like
this that a thread created in the program would also trigger this
exception handler?
Regards,
Mark
.
- Follow-Ups:
- Re: Web Services Client Error
- From: John Saunders [MVP]
- Re: Web Services Client Error
- References:
- Web Services Client Error
- From: Mark Stevens
- Re: Web Services Client Error
- From: John Saunders [MVP]
- Web Services Client Error
- Prev by Date: Re: Progress bar for web service?
- Next by Date: Re: Webservice not returning the right datatype
- Previous by thread: Re: Web Services Client Error
- Next by thread: Re: Web Services Client Error
- Index(es):
Relevant Pages
|