Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Handling COMException

Status
Not open for further replies.

Sidrp

IS-IT--Management
Jun 4, 2003
44
US
I am working on an ASP.net application that is communicating with a COM Object. When ever the COM Object errors out I am catching the error and throwing it to fiannaly handle in Application_ONError. The problem is once the error is raised beyond the routine where it was causd, the Error thrown becomes a COMException and the message is "Unspecified Error",I tried creating a custom error object and throwing thatwith predefind error messages, but no luck. Anyone has any ideas on how I could show some meaningful information from such errors.
thanks
Sid
 
Are you using the GetBaseException method?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I am just catching Exception and throwing. Nothing great..how do you use GetbaseException? Can you give an example..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top