Skip to content

PowerShell-6.2.0-preview.2-win-x64 error on startup (also occurs on upgrade to preview.3) #8289

Description

Steps to reproduce

pwsh-preview

Expected behavior

Launch PowerShell-6.2.0-preview.2

Actual behavior

Gives the following error:

Error:
An assembly specified in the application dependencies manifest (pwsh.deps.json) was not found:
package: 'System.Private.ServiceModel', version: '4.5.3'
path: 'runtimes/win/lib/netstandard2.0/System.Private.ServiceModel.dll'

Environment data

> $PSVersionTable

N/A

Activity

  1. kborowinski commented on Nov 16, 2018

    @kborowinski
    Contributor

    Workaround:
    Run the installer again and use repair function. It will fix the problem.

  2. najeebanwer commented on Nov 16, 2018

    @najeebanwer
    Author

    Kris Borowinski (@kborowinski):
    Yes, that works. Thanks.
    However, it should work after the initial installation and not require a repair.

  3. added
    WG-Maintainers-Build
    on Nov 16, 2018
  4. DarwinJS commented on Nov 16, 2018

    @DarwinJS
    Contributor

    I am having the same problem after an upgrade using the chocolatey package I created for preview. I will avoid updating the chocolatey.org repo until this is fixed so that I don't get lotsa complaints ;)

  5. bergmeister commented on Nov 16, 2018

    @bergmeister
    Contributor

    This seems to be an upgrade problem only (I could reproduce when upgrading from 6.2-preview1 to 6.2-preview1). Uninstalling and reinstalling is fine and fixes it

  6. Agazoth commented on Nov 16, 2018

    @Agazoth

    I had the same issue upgrading using the msi file on W10.

  7. iSazonov commented on Nov 16, 2018

    @iSazonov
    Collaborator
  8. SteveL-MSFT commented on Nov 18, 2018

    @SteveL-MSFT
    Member

    Will investigate next week

  9. damianog commented on Nov 27, 2018

    @damianog

    Same issue to me from 6.2-preview1 to 6.2-preview2 msi installation

  10. SteveL-MSFT commented on Dec 7, 2018

    @SteveL-MSFT
    Member

    Preview.3 is coming out next week, so will wait to see if this repros.

  11. DarwinJS commented on Dec 11, 2018

    @DarwinJS
    Contributor

    It is sort of reproing - though I am going over 6.2 preview 3 and it is a different error:
    image

    And as with preview 2, uninstall and reinstall works fine.

  12. MaximoTrinidad commented on Dec 11, 2018

    @MaximoTrinidad

    Can someone post which build of Windows 10 got the PowerShell Core error??

    :)

  13. DarwinJS commented on Dec 11, 2018

    @DarwinJS
    Contributor

    10.0.17134

  14. 12 remaining items

  15. DarwinJS commented on Dec 20, 2018

    @DarwinJS
    Contributor

    Maybe use a simple zip - with the assumption of file overwrites - for the preview?

  16. SteveL-MSFT commented on Dec 20, 2018

    @SteveL-MSFT
    Member

    Darwin (@DarwinJS) if you use the zip pkg we already release, you already won't have this problem, it's specifically the MSI pkg

  17. DarwinJS commented on Dec 20, 2018

    @DarwinJS
    Contributor

    That's right - I forgot.
    What if your team published a ps1 inside the preview folder that "self-installs" - basically does all the little things the MSI does?
    This way we could unzip + run self-install and be done.
    This would seem to be easy:

    • to design and build - last I checked the MSI install was simple (might have changed) and the preview should actually be less integrated anyway
    • for the powershell team to leave out unapplicable stuff like adding to the path
    • easy for people doing self-installers or wrapping in other packaging technologies to get right
    • easy for the preview chocolatey package to leverage
  18. added
    Issue-Bug
    Resolution-Fixed
    on Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-BugResolution-FixedWG-Maintainers-Build

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions