Just-In-Time debugger was launched without necessary security permissions.

JT 6 Reputation points
2021-03-01T15:02:32.65+00:00

Running a dotnet website locally triggers the below warning:
"The Just-In-Time debugger was launched without necessary security permissions"

If I say yes to debug, it asks for admin access which will then launch a debugger highlighting where the problem is in the code.

What I'd like to understand is:

  • What would cause this to start happening? Normally, if there was an error, the site would fail and the stacktrace would be displayed rather than try and force a debugging session?
  • If I'm already running Visual Studio as an Administrator, why is this process also not being granted administrator privileges?
  • This has started affecting several team members with different versions of Visual Studio (2017 Pro & 2019 Enterprise) and different code bases - could it be affected by a VS or Windows update, Group Policy etc?
  • So far have repaired VS, DotNet, deleted and recreated the local websites, reconfirmed website file permissions.

73091-2021-03-01-14-51-26-d034862.png

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,924 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,004 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,421 Reputation points
    2021-03-02T06:26:13.457+00:00

    Hi JT404,

    You can try to enable Script Debugging.
    73217-image.png
    And I found a similar thread. It seems that the w3wp.exe process crashes, maybe you need to check your global.asax.

    Best Regards,
    Dylan


    If the answer is helpful, please click "Accept Answer" and upvote it.
    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.**

    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.