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

How can you make sure that web api returns json data only?

0 Answers  


How many types of Stored Procedures in SQL Server

4 Answers   Mind Tree,


What is the latest version of asp.net?

0 Answers  


what is ienumerable interface?

1 Answers  


When working with ASP.Net server controls, it is important to use the right event handlers to capture the event for the application to function properly. What event would you use to capture the selection of a new item in a DropDownList control? a) The Click event. b) The SelectionChanged event. c) The SelectionIndexChanged event. d) The ChangedSelection event.

4 Answers   Syntax Softtech,






How can I have a particular web page in an asp.net application which displays its own error page?

0 Answers  


What is deff. saop and disco?

1 Answers  


Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?

0 Answers   InfoAxon Technologies,


Difference between Response.Expires and Expires.Absolute ?

1 Answers   Accenture, BirlaSoft,


What is the difference between Webservice and WCF

9 Answers   IBM, ITC Infotech,


How ASP and ASP.NET page works.

3 Answers  


Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?

0 Answers   Siebel,


Categories