How can u handle Un Managed Code Exceptions in ASP.Net?

Answer Posted / bala.r

.NET handles errors through exception classes. COM handles
errors through 32-bit data types called HRESULTs. All of
the .NET exception classes include HResult properties that
map to COM HRESULT codes.

If an exception occurs in a .NET object, the exception is
automatically mapped to the appropriate HRESULT and
returned to COM. Similarly, if an exception occurs in a COM
object, the COM HRESULT is mapped to the appropriate
exception class, which is returned to .NET, where it can be
handled just like any other exception.

If you are creating your own .NET exception classes for use
with COM, be sure to set the class’s HResult property so
that the exception can be handled within COM.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is faster union or union all?

567


What are the steps to follow to host a web application on a web server?

585


In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?

500


What is state management in asp.net with example?

453


Explain about the Class view window?

581






Explain server-side scripting and client-side scripting.

509


How does the cookies work in asp.net?

544


Why we are using mvc instead of asp.net? : Asp.Net MVC

517


Differences between “dataset” and “datareader”.

554


What is asp.net file?

625


What is ashx file in asp.net?

543


Explain a program using razor view engine to create a simple application? : asp.net mvc

491


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

5675


What is the use of session?

517


What is the use of worker process in asp.net?

521