Hresule when trying to profile an ASP.NET application

I receive the following error when trying to profile an ASP.NET application on my computer. I've reregistered the core2 dll without luck.

Unable to start profiler - exception details System.Runtime.InteropServices.COMException (0x80040202): Exception from HRESULT: 0x80040202.
at System.Runtime.InteropServices.UCOMIConnectionPoint.Advise(Object pUnkSink, Int32& pdwCookie)
at SHDocVw.DWebBrowserEvents2_EventProvider.add_OnQuit(DWebBrowserEvents2_OnQuitEventHandler )
at SHDocVw.InternetExplorerClass.add_OnQuit(DWebBrowserEvents2_OnQuitEventHandler )
at ᐂ..ctor()
at ᐽ.ᐈ()
at ᐽ.ᐁ()
at ᐃ.ᐄ(IAsyncResult )

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Doug Heeren

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hi Doug,

    This is an incredibly common problem with Profiler that shouldn't happen any more in the 2.5 version. What happens is that the Internet Explorer Web Browser Component is not properly registered on the computer so ANTS Profiler cannot determine if the web browser had been closed so that it can determine when to quit and ASP .NET profiling session. To fix the problem, you can re-register the web browser component by opening a command prompt and typing 'regsvr32 shdocvw.dll'.

    In version 2.5, the repair of the web browser component is done for you automatically if this error is thrown. I'd suggest upgrading using the 'check for updates' function.
  • Hi there,

    I'm afraid that 'Check for updates' will not work for version 2.0.1. Please visit the website to download the new version of ANTS Profiler version 2.5.

    https://www.red-gate.com/dynamic/downlo ... filer.aspx

    Many thanks,

    Tom Harris

    Red Gate Software Ltd.
  • Thank you very much. I will try reregistering the IE dll you mentioned above. I will also download the new version.

    Doug
    Doug Heeren
This discussion has been closed.