none
Start-IntelliTraceCollection: startIndex cannot be larger than length of string RRS feed

  • Question

  • Hello,

    I have begun setting up IntelliTrace Standalone Collector on a production machine (following the guide here: https://docs.microsoft.com/en-us/visualstudio/debugger/using-the-intellitrace-stand-alone-collector?view=vs-2019) in order to investigate an issue that only occurs there, but have hit a roadblock when trying to actually start the IntelliTrace Collection process.

    When executing the command:

    Start-IntelliTraceCollection "Dashboard-3039" "C:\IntelliTraceCollector\collection_plan.ASP.NET.default.xml" "C:\IntelliTraceLogFiles"

    I get the following error returned:

    Start-IntelliTraceCollection : startIndex cannot be larger than length of string.
    Parameter name: startIndex
    At line:1 char:1
    + Start-IntelliTraceCollection
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       + CategoryInfo          : NotSpecified: (:) [Start-IntelliTraceCollection], ArgumentOutOfRangeException
       + FullyQualifiedErrorId : System.ArgumentOutOfRangeException,Microsoft.VisualStudio.IntelliTrace.PowerShell.StartIntelliTraceCollectionCommand

    This seems to be an issue with the Powershell cmdlets, but perhaps there is something else amiss?

    Any help would be appreciated.

    Regards,
    Augustas


    Sunday, September 15, 2019 11:08 AM

All replies

  • Hi Augustas Adomavičius,

    Welcome to MSDN forum.

    According to your description, it seems that you didn't not configure cmdlet "Start-IntelliTraceCollection" , please just type "Start-IntelliTraceCollection", then input the details about your application pool.

    Any feedback will be expected.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Monday, September 16, 2019 10:24 AM
  • Hello,

    From documentation it seems possible to pass variables either right away like I tried previously or one by one like you specified.

    Regardless of the method chosen I am facing the same issue (see log and screenshot below):

    PS C:\Windows\system32> Start-IntelliTraceCollection
    
    cmdlet Start-IntelliTraceCollection at command pipeline position 1
    Supply values for the following parameters:
    ApplicationPool: Dashboard-3039
    CollectionPlan: C:\IntelliTraceCollector\collection_plan.ASP.NET.default.xml
    OutputPath: C:\IntelliTraceLogFiles
    
    Confirm
    Are you sure you want to perform this action?
    Performing the operation "Start-IntelliTraceCollection" on target "Dashboard-3039".
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y
    Start-IntelliTraceCollection : startIndex cannot be larger than length of string.
    Parameter name: startIndex
    At line:1 char:1
    + Start-IntelliTraceCollection
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Start-IntelliTraceCollection], ArgumentOutOfRangeException
        + FullyQualifiedErrorId : System.ArgumentOutOfRangeException,Microsoft.VisualStudio.IntelliTrace.PowerShell.StartIntelliT
    

    Regards,

    Augustas

    Monday, September 16, 2019 11:10 AM
  • Hi Augustas Adomavičius,

    Thank you for feedback.

    I have tried to reproduce this issue with different names, but they could all work normally. Not sure if shorten the name of your app pool could help, but it might be worthy trying if it's possible for you.

    And also, you could download the latest tool:IntelliTrace Standalone Collector for Visual Studio 2019.

    Any feedback will be expected.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Tuesday, September 17, 2019 7:22 AM
  • Hi friend,

    Did your issue solve? If your issue still persists, please feel free to let us know. We will handle your further issue as soon as possible.

    Thanks for your understanding.

    Best Regards,

    Perry


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Thursday, September 19, 2019 10:30 AM