Couldn't start the profiling session

Hi

I am not able to profile an asp.net web application (IIS hosted)

I always get the error mentioned in below screenshot "Could not start IIS".
ywkcoatsder0.png

Any help is appreciated.

Thanks,
Prem
Tagged:

Comments

  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    Hi Prem,

    Thanks for your post and so sorry to hear you're running into an issue!

    Can I just check what OS you are profiling? There is a known issue where profiling IIS on Win8.1, Win Server 2012 or higher can throw a "could not start IIS" error when the application has non-http/https bindings.

    Could you kindly open IIS manager, check your bindings for the site you are trying to profile, remove (if only temporarily) all bindings except for any http and https bindings (i.e. net.tcp, net.pipe, net.msmq, msmq.formatname), and then try profiling again?

    Should that not help/apply though, can you kindly:
    - Check Event Viewer (Windows log>Application) for any errors regarding the profiler or your IIS application and send them across
    - Check your profiler log files from Help>Open log folder for further error detail

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


  • Also getting a similar error. I tried every proposed solution, including removing the bindings. No error logs anywhere.

    Running Windows 10, Ants 9.6.

    7mcxk5h55aux.png
  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    Hi @plmaheu, sorry to hear that!

    ANTS should have created a log file available from Help>Open log folder (the default log location is %localappdata%\Red Gate\ANTS Performance Profiler 9). Are you not seeing any errors in the log files there?

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


  • I don't see any errors. I put a couple loggers in DEBUG but nothing stands out either.

    The last lines are:

    15 Jun 2017 14:02:01.536 [10] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - InetSrv WOW64 directory is C:\WINDOWS\SysWOW64\inetsrv
    15 Jun 2017 14:02:01.540 [10] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - Trying to start the IIS profiler service
    15 Jun 2017 14:02:01.544 [10] INFO RedGate.Profiler.Engine.Startup.Sessions.BaseSession - The IIS service appears to be registered; requesting that it start now
    15 Jun 2017 14:03:25.755 [1] INFO RedGate.Profiler.Logic.Controllers.Session.FrontEnd.BrowserProvider - Default browser's install name found. Value: 'Google Chrome'.
    15 Jun 2017 14:03:26.613 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:26.632 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:26.665 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:26.715 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:26.766 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:26.842 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:26.947 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:27.082 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:27.154 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:27.190 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:27.353 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:27.370 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:27.394 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:27.406 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:27.421 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:27.487 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
    15 Jun 2017 14:03:27.607 [10] INFO RedGate.Profiler.Engine.Startup.Basic.Attacher - Found runtime version v4.0.30319
  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    Thank you @plmaheu, I'm going to open a support ticket for you as the "sequence contains no elements" error is rather odd and there aren't any related errors in the log.

    @Prem, please let me know if the issue in your case was related to the bindings, or if you do see any error information in your log files/Event Viewer if not.

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


  • Hi Jessica,

    Thanks for the help.
    Yes, the issue was because of bindings only, I removed all other bindings except Http and Https as mentioned and it started working.

    Thanks,
    Prem
  • Sorry. Looks like I replied little early. I still have the same issue.
    Last time, after starting the profiling session, I restarted the web which made it work.
  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    Hi @Prem,

    So sorry to hear the issue has returned!

    Just to confirm-do you mean you started the site from IIS after the profiling session launched, and that is what worked? If you do that now, does it still work?

    Can you please go ahead and check your log files (Help>Open log folder) and Event Viewer (Windows log>Application) for any related errors? Those will hopefully shed more light.

    Thanks!

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


Sign In or Register to comment.