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



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

Answer / 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

More ASP.NET Interview Questions

What is role-based security?

1 Answers  


What is server side in asp.net?

0 Answers  


Differentiate globalization and localization.

0 Answers  


Difference between Response.Expires and Expires.Absolute ?

1 Answers   Accenture, BirlaSoft,


Describe Segmentation With Paging?

0 Answers   MaxSolPro,


can we transfer data from one page to another page using viewstate if so how?if not y?

1 Answers   Patni,


How long does an http session last?

0 Answers  


What is view state and how it works in asp net?

0 Answers  


What is Model-View-View Model?

0 Answers   MCN Solutions,


what are the levels of securities need to be considered for the finincial web application?

1 Answers  


Why we use asp.net for website development?

0 Answers  


What is WebService ?

8 Answers   Tanla Solutions, Yahoo,


Categories