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

Connect-ExchangeOnline fails because System.Windows.Forms objects are used #3396

Closed
baldieavenger opened this issue Jun 4, 2021 · 8 comments
Assignees
Labels
Area-Engine Issue-Bug A bug to squash. Resolution-Fixed Will close automatically.

Comments

@baldieavenger
Copy link

Hi,
When updating to the latest ExchangeOnlineManagement module, i'm unable to get the pop out to sign in. This works fine with 2.0.3 and in ISE / PowerShell.
Running 5.1 Powershell, 1.56.2 (system setup) Code.
Attached Diagnostic logs when both versions for comparison and a screenshot of the creds pop up Im expecting.
Thanks!
John

CodeLogs20210604.zip

@ghost ghost added the Needs: Triage Maintainer attention needed! label Jun 4, 2021
@andyleejordan
Copy link
Member

Hi, could you also open an issue with the module's repo too?

@andyleejordan andyleejordan added Issue-Bug A bug to squash. and removed Needs: Triage Maintainer attention needed! labels Jun 14, 2021
@baldieavenger
Copy link
Author

Hi Andrew,
Anything more you need from me to dig into this?
Thanks!
John

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label Jun 28, 2021
@dariomws
Copy link

dariomws commented Jul 1, 2021

Hi @baldieavenger, thank you for your feedback.

I've tested it and it's working for me.

VS Code:
image

ISE:
image

@baldieavenger
Copy link
Author

Looks like its due to "System.Windows.Forms"
#3394 (comment)

@andyleejordan andyleejordan removed the Needs: Maintainer Attention Maintainer attention needed! label Jul 13, 2021
@andyleejordan andyleejordan self-assigned this Jul 13, 2021
@andyleejordan andyleejordan added this to the Committed-vNext milestone Jul 13, 2021
@andyleejordan andyleejordan changed the title Unable to Connect-ExchangeOnline 2.0.5 Connect-ExchangeOnline fails because System.Windows.Forms objects are used Aug 9, 2021
@andyleejordan
Copy link
Member

@baldieavenger your profile and script aside, is this issue alone resolved by the dev preview I had you try? That is, can you run Connect-ExchangeOnline in the integrated terminal?

@andyleejordan
Copy link
Member

@baldieavenger With the stable extension, I can reproduce the issue where the authentication prompt doesn't open at all from Connect-ExchangeOnline. With the dev build and Windows PowerShell, the authentication prompt does open for me in the integrated console. After authenticating, the module takes a looong time to finish, but eventually drops me back at a prompt, presumably having connected. With the dev build and PowerShell 7, instead of a GUI prompt, the module opens the browser for authentication; this still works correctly and then it sits loading for a while but eventually finishes.

So I believe my patch to OmniSharp has resolved the issue with Connect-ExchangeOnline in the integrated terminal.

@andyleejordan
Copy link
Member

That fix is merged and will be in the next release!

@andyleejordan andyleejordan added the Resolution-Fixed Will close automatically. label Aug 19, 2021
@ghost ghost closed this as completed Aug 19, 2021
@ghost
Copy link

ghost commented Aug 19, 2021

This issue has been marked as fixed. It has been automatically closed for housekeeping purposes.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Engine Issue-Bug A bug to squash. Resolution-Fixed Will close automatically.
Projects
None yet
Development

No branches or pull requests

3 participants