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
Explain serialization and deserialization?
What are HTTP handlers in ASP.NET?
explain code with datachaching with example
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?
What is server side in asp.net?
What are ASHX files?
What is true about application service provider?
What is asp.net mvc5? : Asp.Net MVC
What does clearing cache?
Is viewstate secure?
What is & in a url?
What is the difference between a default skin and a named skin?
What is ispostback method in asp.net? Why do we use that?
How to you can limit Access to Web API to Specific HTTP Verb?
What is a ashx file?