PROFILE 20 - Troubleshooting web browser problems

Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
edited July 18, 2005 10:18AM in Knowledge Base
  • Date: 19-April-2005 (Reviewed)
  • Versions Affected: 1.2-2.0

When using ANTS Profiler to profile ASP .net web applications using Internet Explorer as a test harness, you may receive the following error message:
There was a problem starting the Profiler. Check that the ANTS Profiler service and IIS are running.

Exception from HRESULT: 0x80040202

Please check the Event Log for more details.


If you examine the application event log, you will see the following:

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 )

This indicates that ANTS Profiler could not gain access to the onQuit() event handler of Internet Explorer that it is using as a test harness. ANTS Profiler needs to do this in order to determine if the Profiler user had closed the browser window, which would signal ANTS Profiler to end the profiling session.

To keep this error from happening, re-register the Internet Explorer web browser component. Open a command prompt and enter RegSvr32 shdocvw.dll to accomplish this.

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    ANTS Profiler version 2.5 now traps and handles this exception by attempting to register shdocvw.dll itself.

    If the registration fails, however, ANTS Profiler will simply throw a FILE NOT FOUND exception. This happens because it could not locate regsvr32.exe to register the web browser component with.

    In this case, please follow the recommendation in the original article to fix the problem.
Sign In or Register to comment.