Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

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

Make sure all the files are present after installation, sounds like your missing the unmanaged resources. Make sure VC++ is installed also amaitland Jun 20, 2018 at 19:42 Hi @amaitland thanks for the reply I just tried executing the app from debug folder where all the file exists and the browser is not loading . If I run through vs it will run from the same debug folder and it’s working good that’s the issue so I don’t think I am missing any files Dah Sra Jun 20, 2018 at 19:43 Yes I tried that too I am building a class library in that using cefsharp . It’s working good in vs and not visible in deployement . Am I missing anything in class library ? Dah Sra Jun 20, 2018 at 20:01

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

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.