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

Explain the difference between an exe and a dll?

0 Answers  


How does session id work?

0 Answers  


By default what is the Asp.Net application login context on IIS 5.0? By default the ASP.Net app runs in the context of a local user ASPNet on IIS version 5. On IIS version 6 on windows 2003 it is called Network service

0 Answers  


in which protocol ASP.NET WEB API Work?

0 Answers   HCL,


i want to develope a page for online test using asp.net with c#.net. so, how to insert the questions in the database sqlserver2000 and how to pick the questions randomly when user login for test. plz send the code for this....

3 Answers   Chaitanya, Crysalis, CTS, HCL, Sein Infotech, TCS,






Define the types of configuration files.

0 Answers  


How is application management and maintenance improved in asp.net 2.0?

0 Answers  


Explain the difference between dataset and datareader.

0 Answers  


What are the various types of validation controls provided by asp.net?

0 Answers  


How about the security in Activex DLL and Activex EXE ?

0 Answers   DELL,


Less than one page, how many windows will you be able to maintain?

0 Answers   Atos Origin,


Which method do you use to kill explicitly a users session?

0 Answers   MindCracker,


Categories