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

Stuck on loading screen #2

Open
chaarlottte opened this issue Oct 9, 2021 · 6 comments
Open

Stuck on loading screen #2

chaarlottte opened this issue Oct 9, 2021 · 6 comments

Comments

@chaarlottte
Copy link

Hi, I have been experiencing an issue with this library where I will become stuck on this screen (https://cdn.upload.systems/uploads/1aHnmwEO.png) for an extremely long period of time (I left it and did something else for an hour, came back and it was still this screen).

My code:

        private void button2_Click(object sender, EventArgs e)
        {
            MicrosoftLoginForm loginForm = new MicrosoftLoginForm();
            MSession session = loginForm.ShowLoginDialog();
            if (session != null) {
                MessageBox.Show("Login success : " + session.Username);

                LauncherForm launcherGui = new LauncherForm();
                launcherGui.session = session;
                launcherGui.Show();
                this.Close();
            } else { 
                MessageBox.Show("Failed to login");
            }
        }

Thank you for any help :)

@AlphaBs
Copy link
Member

AlphaBs commented Oct 10, 2021

did you install webview2 runtime?

@chaarlottte
Copy link
Author

Yes

@AlphaBs
Copy link
Member

AlphaBs commented Oct 14, 2021

can you tell me more detailed information?

  • which os version did you use? windows 11? windows 10?
  • .NET framework version
  • CmlLib.Core library version
  • CmlLib.Core.Auth.Microsoft.UI.WinForm library version

@AlphaBs
Copy link
Member

AlphaBs commented Oct 14, 2021

and please check this program to verify your webview2 is working without any problem.

WebView2WindowsFormBrowser.zip
(This file is built from WebView2 Sample)

@chaarlottte
Copy link
Author

OS: windows 10
.NET framework version:
CmlLib.Core library version: 3.3.3
CmlLib.Core.Auth.Microsoft.UI.WinForm library version: 1.0.2

And while using the program you linked, it seemed to be working with no problems.

@Indoraptor1
Copy link

Hello,
You can solve it by addign using Microsoft.Web.WebView2;

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

3 participants