Hello. I created a new WPF project in Studio, left the necessary widgets, trying to start, I get an error:

Ошибка при попытке запуска проекта: не удалось запустить программу <путь> Отладчик установлен неправильно. Запустите программу Setup для установки или восстановления отладчика. 

I start the installer, choose VS17 -> change . The summary indicates (if it is important):

  • Enabled
    • Classic application development tools
    • Development Tools for .NET 4.6.1
    • C # and Visual Basic
  • Optional
    • Blend for visual studio
    • Entity Framework 6 tools
    • Profiling tools
    • F # language support
    • Development Tools .NET Core 1.0 - 1.1
  • Runtime environment. NET Core What else you may need, I'll never know.

Could you tell me what could be the matter?


An attempt to reinstall the studio causes the installation to fail with the following error (from the log)

 Не удалось восстановить пакет "Microsoft.Net.4.6.FullRedist,version=4.6.81.6". URL-адрес поиска: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.Net.4.6.FullRedist;PackageAction=Repair;ReturnCode=5100 Затронутые рабочие нагрузки Основной редактор Visual Studio (Microsoft.VisualStudio.Workload.CoreEditor,version=15.0.26228.0) Затронутые компоненты Основной редактор Visual Studio (Microsoft.VisualStudio.Component.CoreEditor,version=15.0.26208.0) Журнал C:\Users\Илья\AppData\Local\Temp\dd_setup_20170524225231_002_Microsoft.Net.4.6.FullRedist.log Сведения Команда выполнена: "C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.4.6.FullRedist,version=4.6.81.6\dotNetFx-x86-x64-AllOS-ENU.exe" /q /norestart /repair /KeepAUPaused /ChainingPackage Visual_Studio_15_Setup /CEIPconsent /log "C:\Users\Илья\AppData\Local\Temp\dd_setup_20170524225231_002_Microsoft.Net.4.6.FullRedist.log" Код возврата: 5100 Сведения о коде возврата: Азия 

On the advice of @Eikhner, updated windows, installed the problem package by hand, rebooted; no effect. I tried to restore the studio, I get a crash. The only error that so far has been able to remove from the log:

 Не удалось установить перечисленные рабочие нагрузки и компоненты в продукте из-за сбоев в пакете. Неполные рабочие нагрузки Основной редактор Visual Studio (Microsoft.VisualStudio.Workload.CoreEditor,version=15.0.26228.0) Неполные компоненты Основной редактор Visual Studio (Microsoft.VisualStudio.Component.CoreEditor,version=15.0.26208.0) Вы можете искать решения по сведениям ниже, изменить выбор рабочих нагрузок и компонентов и повторить установку, или же удалить продукт с компьютера. Ниже перечислены отдельные сбои в пакете, которые сделали перечисленные выше рабочие нагрузки и компоненты неполными. Чтобы найти имеющиеся отчеты об этих проблемах, скопируйте и вставьте URL-адрес из сообщения о сбое пакета в адресную строку веб-браузера. Если о проблеме уже сообщалось, вы сможете найти решения или обходные пути. В противном случае вы можете создать новую запись о проблеме, в которой другие пользователи смогут найти решения или обходные пути. Не удалось восстановить пакет "Microsoft.Net.4.6.FullRedist,version=4.6.81.6". URL-адрес поиска: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.Net.4.6.FullRedist;PackageAction=Repair;ReturnCode=5100 Затронутые рабочие нагрузки Основной редактор Visual Studio (Microsoft.VisualStudio.Workload.CoreEditor,version=15.0.26228.0) Затронутые компоненты Основной редактор Visual Studio (Microsoft.VisualStudio.Component.CoreEditor,version=15.0.26208.0) Журнал C:\Users\Илья\AppData\Local\Temp\dd_setup_20170529214845_002_Microsoft.Net.4.6.FullRedist.log Сведения Команда выполнена: "C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.4.6.FullRedist,version=4.6.81.6\dotNetFx-x86-x64-AllOS-ENU.exe" /q /norestart /repair /KeepAUPaused /ChainingPackage Visual_Studio_15_Setup /CEIPconsent /log "C:\Users\Илья\AppData\Local\Temp\dd_setup_20170529214845_002_Microsoft.Net.4.6.FullRedist.log" Код возврата: 5100 Сведения о коде возврата: Азия 

@PashaPash, the file you are talking about is missing, but there is one with the same name and the extension .log.html

 OS Version = 6.0.6000, SP = 0.0, Platform 2 OS Description = Vista - x64 Ultimate Edition MSI = 5.0.7601.23593 Windows version = amd64_windowsfoundation_31bf3856ad364e35_6.1.7601.17514_none_615fdfe2a739474c.manifest Windows servicing = 6.1.7601.18766 CommandLine = C:\f5fa5e713993e05ed093ae6f7e40\\Setup.exe /q /norestart /repair /KeepAUPaused /ChainingPackage Visual_Studio_15_Setup /CEIPconsent /log "C:\Users\Илья\AppData\Local\Temp\dd_setup_20170529214845_002_Microsoft.Net.4.6.FullRedist.log" /x86 /x64 /redist Using Simultaneous Download and Install mechanism Operation: Repairing Package Name = Microsoft .NET Framework 4.6.1 Setup Package Version = 4.6.01055 User Experience Data Collection Policy: AlwaysUploaded Logging all the global blocks Installation Blockers: Не удается выполнить установку в режиме совместимости. Final Result: Installation failed with error code: (0x000013EC), "A StopBlock was hit or a System Requirement was not met." (Elapsed time: 0 00:00:08). / q / norestart / repair / KeepAUPaused / ChainingPackage Visual_Studio_15_Setup / CEIPconsent / log "C: \ Users \ OS Version = 6.0.6000, SP = 0.0, Platform 2 OS Description = Vista - x64 Ultimate Edition MSI = 5.0.7601.23593 Windows version = amd64_windowsfoundation_31bf3856ad364e35_6.1.7601.17514_none_615fdfe2a739474c.manifest Windows servicing = 6.1.7601.18766 CommandLine = C:\f5fa5e713993e05ed093ae6f7e40\\Setup.exe /q /norestart /repair /KeepAUPaused /ChainingPackage Visual_Studio_15_Setup /CEIPconsent /log "C:\Users\Илья\AppData\Local\Temp\dd_setup_20170529214845_002_Microsoft.Net.4.6.FullRedist.log" /x86 /x64 /redist Using Simultaneous Download and Install mechanism Operation: Repairing Package Name = Microsoft .NET Framework 4.6.1 Setup Package Version = 4.6.01055 User Experience Data Collection Policy: AlwaysUploaded Logging all the global blocks Installation Blockers: Не удается выполнить установку в режиме совместимости. Final Result: Installation failed with error code: (0x000013EC), "A StopBlock was hit or a System Requirement was not met." (Elapsed time: 0 00:00:08). " OS Version = 6.0.6000, SP = 0.0, Platform 2 OS Description = Vista - x64 Ultimate Edition MSI = 5.0.7601.23593 Windows version = amd64_windowsfoundation_31bf3856ad364e35_6.1.7601.17514_none_615fdfe2a739474c.manifest Windows servicing = 6.1.7601.18766 CommandLine = C:\f5fa5e713993e05ed093ae6f7e40\\Setup.exe /q /norestart /repair /KeepAUPaused /ChainingPackage Visual_Studio_15_Setup /CEIPconsent /log "C:\Users\Илья\AppData\Local\Temp\dd_setup_20170529214845_002_Microsoft.Net.4.6.FullRedist.log" /x86 /x64 /redist Using Simultaneous Download and Install mechanism Operation: Repairing Package Name = Microsoft .NET Framework 4.6.1 Setup Package Version = 4.6.01055 User Experience Data Collection Policy: AlwaysUploaded Logging all the global blocks Installation Blockers: Не удается выполнить установку в режиме совместимости. Final Result: Installation failed with error code: (0x000013EC), "A StopBlock was hit or a System Requirement was not met." (Elapsed time: 0 00:00:08). 

The system for some reason was defined as whist. What could it mean?

  • Try to check for updates that are on your system. First, KB2919442, then KB2919355, since the second is not put without the first, and no fraimvor 4.6 is not put without KB2919355. Maybe help - SergeyE
  • as an option to try a separate installer to install the necessary Microsoft.Net.4.6.FullRedist component in English, install the necessary language pack, and try changing the studio again ... if a separate installer fails to install - then search for a problem, why not install the necessary software Perhaps what other message will give, which will get something to find out. - SergeyE
  • @Eikhner, I tried to update Windows (the last time I did it almost a year ago, probably not the best idea), did not help. Although neither KB2919442 nor KB2919355 is in the update log, only KB2999226 is available. - Rennorb
  • Wait, KB2919442 is an update for the eight, I have the seventh windows. - Rennorb
  • try rolling a package with a separate installer msdn.microsoft.com/en-us/library/5a4x27ek (v=vs.110).aspx, whether or not it - SergeyE

1 answer 1

In order to create a new WPF project in Visual Studio 2017, you need the component:

enter image description here

This component contains everything you need, of course, you can put additional individual components, such as:

  • SDK for .NET Framework 4.6.2
  • .NET Framework 4.6.2

Although, everything you need is automatically selected and you can manually select what is missing:

enter image description here

If, after updating the Windows operating system, it is now impossible to restore the Visual Studio 2017 development environment, then you can go two ways. You need to try first with less costly:

  • Completely remove the Visual Studio 2017 development environment with all its supporting elements. After removal, do not forget to restart the computer and clean the garbage. Dependent components are also removed. Check for updates of the Windows operating system, if available - install. Restart the system again. Download the latest version of the Visual Studio 2017 development environment installer, run the installer and select the necessary workloads (be sure to select Developing classic .NET applications and the new .NET Framework is desirable). Complete the installation, follow the instructions, reboot again and try to create a new project from scratch. (or just uninstall and reinstall, but of course it is better to clean everything up).

At first it seemed that this method is less expensive, but in fact it is more expensive than the next one that will be offered. So, a quick and costly way to make it work:

  • Transfer the necessary files to disk stored on the disk with the system. Reinstall the system and roll out the development environment of Visual Studio 2017 from scratch.

Yes, I offer this answer. Alas, if something develops in the development environment, after which it stops working properly, this leads to big problems. Solving these problems has a long and tedious. Install packages, download components, copy files from a working computer to your own, find out why the application files have been deleted or why the antivirus suddenly blocked something and deleted it. All this is spent too much time. If you were unable to resolve this issue in a few days, then the solution lies on the surface, it only takes a couple of hours.

He himself recently ran into a problem in Visual Studio, updated it - it became buggy, then the WCF test client stopped running, then it started to reboot itself. Reinstalled the development environment and it all worked. Some time earlier, when there were big problems, I tried to find out what the problem was in the development environment, but it takes too much time.

Moreover, the error message sounds like this:

“The debugger is not installed correctly”

So you need to install correctly, and for this, at least, you need to remove it. And it is best removed along with the entire Visual Studio development environment. Something like this.