使用 wix 部署后 CefBrowser 未加载
CefBrowser not loading after deployment using wix
您好,我是 CefBrowser 的新手。
当从 visual studio 执行解决方案时,浏览器工作正常。
但是在开发阶段之后,当我尝试在部署后直接加载 Cef 浏览器时,浏览器没有加载。
我在开发和部署阶段发现的区别是当VSCefSharp.BrowserSubprocess.exe中的运行在任务管理器中是运行但是它不是 运行 部署后。
我错过了什么吗?我也复制了调试文件夹中的所有文件。
阿尔沙德
感谢@amaitland 的帮助和建议。
问题在 初始化 CEF 浏览器 并为 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);
}
阿尔沙德
您好,我是 CefBrowser 的新手。 当从 visual studio 执行解决方案时,浏览器工作正常。 但是在开发阶段之后,当我尝试在部署后直接加载 Cef 浏览器时,浏览器没有加载。
我在开发和部署阶段发现的区别是当VSCefSharp.BrowserSubprocess.exe中的运行在任务管理器中是运行但是它不是 运行 部署后。
我错过了什么吗?我也复制了调试文件夹中的所有文件。
阿尔沙德
感谢@amaitland 的帮助和建议。
问题在 初始化 CEF 浏览器 并为 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);
}
阿尔沙德