Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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&#8217;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 methods of session maintenance in asp.net?

1009


How Session use Cookies in State Management?

1063


Can we use html in asp.net?

925


How to disable disable browser's Back button in asp.net (JavaScript)?

1129


What are url fragments?

899


How can you handle errors in Web API?

1131


Elaborate differentiation between Cache and Application?

967


What is a web server? What are the load limits in it?

1124


Difference between response.redirect and server.transfer?

1025


What are cookies in your browser?

982


Is oauth for authentication or authorization?

1028


Why is string called immutable data type?

1028


Is asp.net is a programming language?

935


Why does my asp.net file have multiple tag with runat=server?

984


Can you nest updatepanel within each other?

971