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

Is asp.net a language?

613


What are ASHX files?

684


What is the difference between custom web user control and a custom web server control?

591


What are the security types in ASP/ASP.NET? Different Authentication modes?

651


How does session authentication work?

590






What is authorization in asp.net?

690


What are asp.net web forms?

632


What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?

661


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

2038


What is difference between viewstate and session in asp net?

638


What are session objects?

613


i develop a web application and i gave security setting i.e autherization and athentication now it work properly on my local system , now question is ,is this security setting ie autherization and athentication which i gave in web.config will it be enough strong to secure my application on internet or i have to use some 3rd party tool or software to get security .if yes --how ? if no--what is the alternate?

1618


What is the difference between pathparam and queryparam?

684


What is the advantage of using Windows authentication in a Web application?

667


What are the new data controls in asp.net 2.0?

614