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 state management technique?
Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?
What is x xss protection?
Explain the asp.net mvc folder conventions? : asp.net mvc
What is http request and response?
How to disable validator control by client side JavaScript?
What are server side controls?
Do you support digital rights management to protect my videos?
What is http only cookie?
What is sql data source control in asp.net?
Explain the asp.net mvc request life cycle? : asp.net mvc
What happens if an ASP.NET server control with event-handling routines is missing from its definition?
Elaborate differentiation between ViewState and SessionState?
What is Pre-Render event in ASP.NET?
What is the use of web.config and machine.config files?