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 is the significance of attaching a profile while creating a user?
Define web services in asp.net.
Explain Life cycle of ASP.NET page when a request is made.
What is the use of ASP.NET routing?
What is connection pooling and how to enable and disable connection pooling?
What is ispostback property?
What are the different authentication modes in asp.net?
Which property is used to identify the Page is Post Back in ASP.NET?
Explain significance of routing? : asp.net mvc
Explain the overview of asp.net?
Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc
What is advantage of code behind coding in ASP.NET?
What is anonymous authentication?
What threading model used in asp and asp.net?
What is cross page posting? How is it done?