none
Performance Session file does not exist or is invalid

    Question

  • I have a web application that I'm trying to profile.

    Here are my steps:

    1) Debug => Performance Profiler

    2) Performance Wizard is checked.

    3) Click start

    3) CPU sampling (recommended) checked

    4) Next

    5) One or more available projects => pick the web project

    6) Next

    7) Next

    8) Launch profiling after the wizard finishes. checked

    9) Next

    10) Performance Session file c:\Users\...\Performance file.psess does not exist or is invalid.

    11)  Click Ok.

    12) Object null or not set to an instance of an object.

    The file exists, I can see it in the specified directory.  If I try to open it from the file menu, I get the same error message, minus the object null message.


    • Edited by Blainer0121 Wednesday, November 23, 2016 6:16 PM
    Wednesday, November 23, 2016 6:14 PM

All replies

  • Hi Blainer0121,

    In my side, I followed with your steps, and I could get the performance file in my project path.

    >>Object null or not set to an instance of an object

    According to this error, this issue is caused by VS has been damaged. Please refer to the following scenarios:

    1). Delete the contents from the following folders:    

          C:\Users\{user}\AppData\Local\Microsoft\VisualStudio

          C:\Users\{user}\AppData\Local\Microsoft\VSCommon

    2). Sometimes we need to reset our VS:

    lick Start->Developer Command Prompt for VS-> type “devenv.exe /ResetSettings”

    Hope it helpful for you.

    Sincerely,

    Oscar


    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.

    Friday, November 25, 2016 6:35 AM
    Moderator