The debugger's worker process (msvsmon.exe) unexpectedly exited | VS2022 WIN11

Joanna Lam 20 Reputation points
2023-02-27T04:07:36.8633333+00:00

A super simple Console Application developed by .NET Framework 4.8

However, The debugger's worker process (msvsmon.exe) unexpectedly exited.

Visual Studio : Microsoft Visual Studio Professional 2022 (64-bit) - LTSC 17.4

Version : 17.4.5

.NET Framework 4.8

Window OS :

Windows 11 Enterprise Edition 22H2

Installed Date : ‎2023/‎1/‎31

OS Version : 22621.1265

Windows Feature Experience Pack : 1000.22638.1000.0

Please help to investigate.

Thank you very much.

Module Module1

    Sub Main()
        Dim now As Date = now 'Problem exist here!!!
        For index As Integer = 0 To 1
            Console.WriteLine(now.ToString("tt "))
            now = now.AddHours(12)
        Next

        Console.ReadLine()

    End Sub

End Module
Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2023-02-27T07:18:36.91+00:00

    Hello @Joanna Lam ,

    Welcome to Microsoft Q&A forum.

    Did you set some breakpoints, and are you using remote debugging?

    Please first try to delete all breakpoints that you have set(Debug > Delete All Breakpoints), and then go to your solution folder and remove the hidden .vs folder(if you didn’t see the hidden .vs folder, please open a Windows File Explorer > click View > Show > Hidden items), then try to rebuild your project, set the breakpoints and run it again.

    Please then try following methods too if removing breakpoints doesn’t work.

    1. Close and restart VS(reboot your machine if possible).
    2. Repair VS from VS Installer > More > Repair. Update VS to the latest version. Reset VS settings.
    3. Disable any installed extensions in VS > Extensions > Manage Extensions and check if the issue disappears.
    4. In case Windows Security blocked the msvsmon.exe, you may consider adding an exclusion to Windows Security.
    5. Please try to create a new project > set the breakpoint directly to Console.WriteLine("Hello World!") line and run the project then let us know if the same error appears.

    If you are using remote debugging, please check if you are using any proxy and platform(like Azure DevOps) and check these documents: Network configuration, Troubleshoot remote debugging, Remote Debugging Errors and Troubleshooting.

    Feel free to contact us.

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Joanna Lam 20 Reputation points
    2023-03-01T03:39:33.74+00:00

    Dear Tianyu,

    Problem was solved when .vs folder deleted.

    Thank you very much.

    Joanna

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.