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
Which is faster union or union all?
What are the steps to follow to host a web application on a web server?
In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?
What is state management in asp.net with example?
Explain about the Class view window?
Explain server-side scripting and client-side scripting.
How does the cookies work in asp.net?
Why we are using mvc instead of asp.net? : Asp.Net MVC
Differences between “dataset” and “datareader”.
What is asp.net file?
What is ashx file in asp.net?
Explain a program using razor view engine to create a simple application? : asp.net mvc
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server
What is the use of session?
What is the use of worker process in asp.net?