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

What are the different types of Caching techniques in ASP.NET?

782


Explain the difference between an exe and a dll?

723


What parameters can you pass in the url of the api?

858


Does asp.net still recognize the global.asa file?

737


Is LINQ performance wise better or using sqlcommand?

4650


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

2103


Differentiate between globalization and localization.

755


What do you understand from custom control?

810


What is the difference between globalization and localization?

682


How response object is related to asp's response object?

704


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?

2181


What are the different validators in asp.net?

763


What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.

824


What is view state and how it works in asp net?

773


Is there any limit for query string? Means what is the maximum size?

711