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
What are the different methods of session maintenance in asp.net?
How Session use Cookies in State Management?
Can we use html in asp.net?
How to disable disable browser's Back button in asp.net (JavaScript)?
What are url fragments?
How can you handle errors in Web API?
Elaborate differentiation between Cache and Application?
What is a web server? What are the load limits in it?
Difference between response.redirect and server.transfer?
What are cookies in your browser?
Is oauth for authentication or authorization?
Why is string called immutable data type?
Is asp.net is a programming language?
Why does my asp.net file have multiple tag with runat=server?
Can you nest updatepanel within each other?