How can u handle Un Managed Code Exceptions in ASP.Net?



How can u handle Un Managed Code Exceptions in ASP.Net?..

Answer / 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

More ASP.NET Interview Questions

How does SQL Server session state works

1 Answers   Emphasis,


How can you pass multiple complex types in Web API?

0 Answers  


Define WCF ABC , Diffrent Contract. Diff b/w Wcf and in webservice

2 Answers   Syntel,


what are the application layers for a distribute application?

0 Answers   Mind Tree,


what is the assembly?

2 Answers  






Why do we need Web Services?

1 Answers   Mind Tree,


Can we have 2 web config files?

0 Answers  


how can i deploy a asp.net webapplication.in a company so that all employees may access application on their different computers and share a single database. plz tell me the steps to do it..thanks.

1 Answers  


Who will magage un-managed code?

7 Answers   HP,


What?s the difference between Response.Write() andResponse.Output.Write()?

7 Answers   Atos Origin, IBM,


repeater and gridview diff? Why is repeater fast than gridview?

3 Answers   TCS,


What is Bundling and Minification in MVC?

0 Answers   HCL,


Categories