Failed to install Microsoft.VisualStudio.Component.Debugger.JustInTime (VS2017)

This week we were trying to install Visual Studio 2017 (15.3.2) but we were getting the following error:

Package ‘Microsoft.VisualStudio.Debugger.JustInTime,version=15.0.26621.2’ failed to install

Other Visual Studio components depend on this package:

  • .NET desktop development
  • .NET desktop development tools
  • Windows Workflow Foundation

ramontebar_blog_Just-In-Time debugger dependencies

Since the Windows Workflow Foundation module couldn’t be installed, I couldn’t open workflow libraries to develop Custom Workflow Activities for Dynamics 365.


The solution was as simple as updating the System Variable __PSLockDownPolicy value to 1:


This is related to the PowerShell Constrained Language Mode, see the following article for more details:

Basically the Visual Studio installer was trying to run a command that was not allowed based on the PowerShell Constrained Language policy.

***Thanks to my colleague Emir for his help 😉

Looking at forums, there were other suggestions like stopping the anti-virus or run the following command:

Unblock-File -path “C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.Debugger.JustInTime,version=15.0.26621.2\RegisterJustInTimeDebugger.ps1”

The following discussions were talking about the same:



About Ramon Tebar

Software Engineer specialised on Microsoft Technologies with experience in large projects for different industrial sectors as developer, consultant and architect. I enjoy designing and developing software applications, it is my job and one of my hobbies. I’m interested in design patterns, new technologies and best practices. Making those part of the ALM process is a great challenge. During the last years, I have specialised in Microsoft Dynamics CRM (now Dynamics 365). I customise and extend the platform to provide tailored solutions and integrations based on service-oriented architectures and messages queuing. Motivated by community events and contributor in blogs, technical books, open source projects and forums, I have been awarded Microsoft Most Valuable Professional (MVP) on Dynamics 365 (CRM) since 2012.

Posted on August 24, 2017, in Custom Workflow Activities, Dynamics 365, Visual Studio, Visual Studio 2017 and tagged , , , , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: