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 session management in web application?

0 Answers  


I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do?

7 Answers   eMids, Infotech, Integra, TCS, Wipro,


Why we use content place holder in asp.net?

0 Answers  


What are Master pages? How to define a Master page?

3 Answers  


Explain culture and uiculture values.

0 Answers  






Distinguish between Server-side and Client-side code?

0 Answers   Siebel,


Turn Off ASP Session State on an IIS 5.1 Web Site

1 Answers  


What is difference between mvc and asp.net? : Asp.Net MVC

0 Answers  


How many classes can a single .NET DLL contain?

6 Answers   SoftSol,


Explain method to handle error using HttpError in Web API?

0 Answers  


Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?

0 Answers  


Where do you store the information about the user?s locale?

2 Answers  


Categories