Error profiling an ASP.Net application

When I press the Go button to start profiling an ASP.Net application, I get an error message:
There was a problem starting the profiler. Check that the ANTS Profiler service and IIS are running.

Exception from HRESULT: 0x80040202


The entry in the event log is:
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 RedGate.Profiler.UI.Browser..ctor()
   at RedGate.Profiler.UI.frmMain.ᐐ()
   at RedGate.Profiler.UI.frmMain.ᐑ()
   at RedGate.Profiler.UI.frmMain.ᐁ(IAsyncResult )

I'm using version 1.30 build 147 and I have version 1.1 and 2.0 of the .Net Framework installed.


How do I fix this?

Comments

  • Just found an old post on here with similar issues. Seems to be an issue with IE not being registered properly.

    I've got around it for now by reinstalling IE.
  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hello Adrian,

    This could be. If you have a newer version (2.1+), then ANTS tries to re-register the InternetExplorer dll automatically and if it can't, it yields a slightly different error message.

    If you have a lesser version, you need to run regsvr32 shdocvw.dll.
Sign In or Register to comment.