Connect-PnPOnline and Windows Forms #2344
Unanswered
mikenikitin
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I am having the same issue and I'm wondering if it has to do with the interaction between the PNPOnline Object and the Windows Forms Object. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Apologies if this is a duplicate - I have tried to find this information in here but did not have much luck.,
I have run into a strange issue, which I have seen reported by other people as well. Basically, when my PowerShell script (5.1) has added Windows Forms support (Add-Type -AssemblyName System.Windows.Forms) and I try to connect to my SharePoint Online site using Connect-PnPOnline, the latter cmdlet never completes and the whole script just hangs. Without Forms, everything works perfectly without any issues. What's even more strange, sometimes it starts working even with Forms, but then stops again. I can't seem to be able to put my finger on what is causing this issue.
I have seen a closed Bug Issue on this topic but Veronique just states in it that the problem is not related to PnP.PowerShell. I am puzzled as to what is it actually related to?
Any suggestions would be greatly appreciated! Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions