Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with PowerShell Module in PowerShell 7.5 #538

Open
sthayduk opened this issue Jan 30, 2025 · 1 comment
Open

Issue with PowerShell Module in PowerShell 7.5 #538

sthayduk opened this issue Jan 30, 2025 · 1 comment

Comments

@sthayduk
Copy link

Hi,

since the release of PowerShell 7.5, the PowerShell modules no longer work. We encounter the following error:

Add-Type: (7,36): error SYSLIB0014: 'ServicePointManager' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are
obsolete. Use HttpClient instead. Settings on ServicePointManager no longer affect SslStream or HttpClient.'
(https://aka.ms/dotnet-warnings/SYSLIB0014) public static void SetCallback() {
System.Net.ServicePointManager.ServerCertificateValidationCallback = ValidationCallback; }

Module Version is 7.5.146913

Could you provide guidance on how to resolve this issue?

Best regards,
Stefan

@sthayduk sthayduk changed the title Issue with PowerShell Modules in PowerShell 7.5 Issue with PowerShell Module in PowerShell 7.5 Jan 30, 2025
@petrsnd
Copy link
Member

petrsnd commented Feb 1, 2025

@sthayduk A fix for this issue is in testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants