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 security types in ASP/ASP.NET? Different Authentication modes?
Which is better asp.net or php?
What is the difference between pathparam and queryparam?
How would you implement inheritance using c#?
What is Bundling and Minification in MVC?
Explain exception filters?
What is comparevalidator?
What is asp net theme?
What is cas?
IN an ASP.NET Web application if there is any error, how can you debug?
Why would a company use an application service provider?
How can we communicate with each server in N-tier Architecture? and what are the methods?
Define xmlreader class.
What are the different methods of session maintenance in asp.net?
What is the advantage of mvc over asp.net? : Asp.Net MVC