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


Please Help Members By Posting Answers For Below Questions

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?

1410


What are the event handlers that we can have in global.asax file?

535


What is the basic difference between asp and asp.net?

520


What is asp.net and ado net?

521


How do you create a master page?

559






Explain the asp.net mvc folder conventions? : asp.net mvc

510


What is paging in context of Memory?

656


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

526


Define session in asp.net.

561


Do cookies store passwords?

505


What is a swagger in web api?

540


Explain what is clr?

628


Which protocol is used to call web service?

564


How many types of Cookies are available in ASP.NET?

590


What are demand-paging and pre-paging?

584