Skip to content

SQLServer module 22.1.1 breaks Connect-PnPOnline #1

@jmsinick

Description

@jmsinick

I had been using the script and it was working great. Then went to deploy it on a new machine and it failed with the following error.

VERBOSE: Error checking for updates: Could not load type 'Microsoft.Extensions.DependencyInjection.ServiceCollection' from assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

TerminatingError(Connect-PnPOnline): "Host not reachable"

The new deployment pulled SQLServer module version 22.1.1 which appears to have added Microsoft.Extensions.DependencyInjection.Abstractions, Version=5.0.0.0 wihc is in conflict with the PnP.PowerShell that included version 6.

I forced the script to use SQLServer version 21.1.18256 and everything is great again.

Love the script. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions