Search code examples
chromium-embeddedcefsharp

CefBrowser not loading after deployment using wix


Hi I am new to CefBrowser . When executing the solution from visual studio then the browser is working fine. But after the development phase when i tried to load the Cef browser directly after deployment the browser is not loading .

The difference i found in the development and deployment stage is When running from VS CefSharp.BrowserSubprocess.exe is running in the task manager but its not running after the deployment .

Am i missing anything ? I have copied all the files from the debug folder too .

Arshad


Solution

  • Thanks @amaitland for the help and suggestions.

    Issue got solved after Initializing the CEF browser and setting the absolute path for CefSharp.BrowserSubprocess.exe

    if (!Cef.IsInitialized)
            {
                CefSettings cefSettings = new CefSettings();
                cefSettings.BrowserSubprocessPath = path; // **Path where the CefSharp.BrowserSubprocess.exe exists**
                cefSettings.CachePath = "ChromiumBrowserControlCache";
                cefSettings.IgnoreCertificateErrors = true;
              Cef.Initialize(cefSettings);
            }
    

    Arshad