[Preview] Clean Preview install on Windows 2016 - Exception encountered starting EditorServices
See original GitHub issueIssue Description
I am experiencing a problem with…
Exception encountered starting EditorServices. Exception logged in D:\a\1\s\src\
PowerShellEditorServices.Hosting\Commands\StartEditorServicesCommand.cs on line
221 in EndProcessing:
System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFo
undException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Cul
ture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The s
ystem cannot find the file specified.
at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.LoadEdito
rServices()
at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.<LoadAndR
unEditorServicesAsync>d__9.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceled
Exceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationTo
ken cancellationToken)
at Microsoft.PowerShell.EditorServices.Commands.StartEditorServicesCommand.En
dProcessing()
---> (Inner Exception #0) System.IO.FileNotFoundException: Could not load file o
r assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13
ffcd2ddd51' or one of its dependencies. The system cannot find the file specifie
d.
File name: 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13
ffcd2ddd51'
at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.LoadEdito
rServices()
at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.<LoadAndR
unEditorServicesAsync>d__9.MoveNext()
dProcessing()
---> (Inner Exception #0) System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
File name: 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.LoadEditorServices()
at Microsoft.PowerShell.EditorServices.Hosting.EditorServicesLoader.<LoadAndRunEditorServicesAsync>d__9.MoveNext()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
<---
== Press any key to close terminal ==
It’s a test Domain Controller and I wanted to test something out. First time install, straight install of Preview Extension, and only that extension.
Attached Logs
Follow the instructions in the README about capturing and sending logs.
Environment Information
Visual Studio Code
| Name | Version |
|---|---|
| Operating System | Windows_NT x64 10.0.14393 |
| VSCode | 1.41.1 |
| PowerShell Extension Version | 2019.12.0 |
PowerShell Information
| Name | Value |
|---|---|
| PSVersion | 5.1.14393.3383 |
| PSEdition | Desktop |
| PSCompatibleVersions | 1.0 2.0 3.0 4.0 5.0 5.1.14393.3383 |
| BuildVersion | 10.0.14393.3383 |
| CLRVersion | 4.0.30319.42000 |
| WSManStackVersion | 3.0 |
| PSRemotingProtocolVersion | 2.3 |
| SerializationVersion | 1.1.0.1 |
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
| Extension | Author | Version |
|---|---|---|
| powershell-preview | ms-vscode | 2019.12.0 |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
installing Exchange Server 2016 CU 20 - Microsoft Q&A
I tried to install Exchange Server 2016 CU 20 on windows server 2019 ... ServiceCommandException: Service 'Windows Defender Firewall ...
Read more >Visual Studio Code Powershell startup failure
Wait for PowerShell session to finish starting and try again. Source: PowerShell Preview (Extension). It seems to be related to the Powershell ...
Read more >Cloud Deployment Survey - PowerShell
Previous Introducing the Windows PowerShell ISE Preview ... We recommend that you use PowerShellGet to install DSC resource modules:.
Read more >The Schwartz Report
Microsoft has released the technical preview of IoT Central, ... brings the software-defined infrastructure offered in Windows Server 2016 (such as Storage ...
Read more >PowerShell Install Coding – Index - Wilson Mar
Open source on Linux and MacOS; Install PowerShell on Windows ... 21 May 2021, 7.2.0-preview.6, 62.1 MB ... Clear PS Screen.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve have a fix for this, linked above and have tested it on Windows Server 2016 with .NET 4.6.2 and .NET 4.7.0. So this should be fixed in the next release.
Experienced the very same issue today on a fresh install, Windows Server 2016. I’ll now try the workaround of installing .NET Framework 4.7.2 or higher.