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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain serialization and deserialization?

793


What are HTTP handlers in ASP.NET?

797


explain code with datachaching with example

1907


How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?

805


What is server side in asp.net?

737


What are ASHX files?

824


What is true about application service provider?

690


What is asp.net mvc5? : Asp.Net MVC

789


What does clearing cache?

732


Is viewstate secure?

743


What is & in a url?

739


What is the difference between a default skin and a named skin?

851


What is ispostback method in asp.net? Why do we use that?

871


How to you can limit Access to Web API to Specific HTTP Verb?

934


What is a ashx file?

787