Awesomium doesn't load HTTPS web app

This is what I have in my WPF application, I am using Awesomium web browser control along with MVVM and Caliburn.Micro.

In my ShellViewModel I have the following code in OnViewReady method

        if (!WebCore.IsInitialized)
        {
            WebCore.Initialize(
                new WebConfig()
                {
                    HomeURL = "http://www.ic24.org.uk".ToUri(),
                    LogPath = Path.Combine(@"C:\Users\nstevens\AppData\Local\IC24\Cleo", "logs"),
                    LogLevel = LogLevel.Verbose
                });
        }

        webControl = new WebControl
                             {
                                 Source = "https://newcleodev.sehnp.nhs.uk/".ToUri(), // this is a locally hosted web application
                                 WebSession =
                                     WebCore.CreateWebSession(
                                         @"C:\SessionDataPath",
                                         new WebPreferences
                                             {
                                                 WebSecurity = false,
                                                 AllowInsecureContent = true
                                             })
                             };
        webControl.WebSession.ClearCache();
        webControl.BorderThickness = new Thickness(0, 0, 0, 0);
        webControl.Margin = new Thickness(0, -4, 0, 0);
        webControl.ShowContextMenu += webControl_ShowContextMenu;
        webControl.ConsoleMessage += (sender, args) => Debug.WriteLine(args.Message);
        webControl.Crashed += (sender, args) => Debug.WriteLine(args.Status);
        webControl.LoadingFrame += this.webControl_LoadingFrame;
        webControl.LoadingFrameComplete += this.webControl_LoadingFrameComplete;
        webControl.CertificateError += (sender, args) =>
            {
                args.Handled = EventHandling.Default;
                args.Ignore = true;
            };

        WebCore.ResourceInterceptor = new CustomResourceInterceptor
                                          {
                                              RequestEnabled = true, 
                                              Headers =
                                                  new Dictionary<string, string>
                                                     {
                                                          {
                                                              "theme", 
                                                              shellView
                                                              .SelectedItem
                                                              .StyleSheet
                                                          }
                                                      }
                                          };

        this.documentPanel = new DockPane { Header = "NHS Confidential: Personal data about a patient", Content = webControl };

        this.dockingManager.AddDocument(this.documentPanel);

        webControl.DocumentReady += WebViewOnDocumentReady;

      

When I run the app, I don't get the web app loading in the browser control, I tried to access the Uri above in Internet Explorer and Chrome, and the app loaded in both cases, I also tried different Uri settings in the browser and they all work.

I am really struggling with this particular Uri, the only problem I have seen is that when I load this Uri in Chrome, I get a prompt to accept the client certificate (the dialog contains the specified root certificate)

I would like a sanity check to show that the below code is correct and I have done nothing wrong, also would like to know what the problem is, the contents of the log file

[0807/143423:INFO:(0)] WebCore is now online.
[0807/143423:INFO:(0)] Running Awesomium 1.7.5.0
[0807/143423:INFO:Awesomium.NET(0)] Registering Javascript Callbacks

      

Nothing else prints to either the log or the output window in VS.

EDIT: I checked the LoadFrameEventArgs values ​​and don't see any problem there, no SSL errors, LoadingFrame event fired, but nothing else, I'm really stuck with this !!

+3


source to share





All Articles