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

For Web services where you can browse on the Internet?

1 Answers   Siebel,


What is the significance of attaching a profile while creating a user?

0 Answers   MCN Solutions,


How you can access the properties and controls of master pages from content pages?

0 Answers  


what do machine key element in configuration file specify?

1 Answers   TCS,


What is asp net objects?

0 Answers  






I create small website, i want accept all the browser this website? what will do?

1 Answers  


any body help me. Is it possible to convert text in gif images into word document with the same text? thanks in advance.

2 Answers  


What is clickid?

0 Answers  


What are the best practices to follow to secure connection strings in an ASP.NET web application?

0 Answers   MCN Solutions,


What is Web Application?

2 Answers   HCL,


what is webservices. howit is use in our project .

1 Answers   Patni,


wt is repeater control and wt is datalist control and wt defferences these two? i want some code in datalist?

1 Answers  


Categories