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
We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?
What are the event handlers that we can have in global.asax file?
What is the basic difference between asp and asp.net?
What is asp.net and ado net?
How do you create a master page?
Explain the asp.net mvc folder conventions? : asp.net mvc
What is paging in context of Memory?
Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?
Define session in asp.net.
Do cookies store passwords?
What is a swagger in web api?
Explain what is clr?
Which protocol is used to call web service?
How many types of Cookies are available in ASP.NET?
What are demand-paging and pre-paging?