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 .net framework and what are the main components of it?
Explain asp.net mvc request life cycle? : asp.net mvc
What is difference between singleton and single call?
Can we make activex dll also ti execute in some process as that of client ? How can we do?
What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?
How Session outproc in Sqlserver stored?
How would you enable impersonation in the web.config file?
how to retrieve property settings from xml .config file.
Explain about asp.net 2.0 themes?
Explain the difference between globalization and localization techniques
What is http protocol and how it works?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What is the difference between session and viewstate in asp.net?
How do you initiate validation on the server manually? What are two situations when you might you want to do that?
Where is asp.net view state stored?