question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Preview] Clean Preview install on Windows 2016 - Exception encountered starting EditorServices

See original GitHub issue

Issue 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rjmholtcommented, Jan 10, 2020

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.

0reactions
DarkLite1commented, Jan 8, 2020

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.

image

Version: 1.42.0-insider (system setup)
Commit: cba31b819ea99836daf51cee56299348e9c6d20b
Date: 2020-01-08T05:39:25.874Z
Electron: 6.1.6
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.14393
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found