-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
CefSharp.Core unable to load when published (ClickOnce) #625
Comments
UPDATE: I was able to get this to work. I kept digging through the existing issues and found (this)[https://github.com//issues/500] I had to modify one of the responses further; here is what I did
|
@dtbiedrzycki Excellent, glad you managed to sort this yourself 👍 |
I'd second @amaitland's praise. Thanks that you took the time to document for others to find 😄 appreciated! Welcome to CefSharp land. I took the liberty to link to your https://github.com/dtbiedrzycki/SlackWindowsApp, where I see you applied what you learned. Apparently there's now both a WPF and a WinForms CefSharp based http://slack.com client 💃 |
No problem guys! Glad I could help at least in some small form. Now, the problem that I was having; is that expected behavior or is there something I can help with so that the correct dll's are where they need to be when publishing? |
Unless There are alternatives to |
Hi, I dont understand where should I copy dlls |
@stepanets The full source for a working example is available at https://github.com/dtbiedrzycki/SlackWindowsApp - have you checked to see what it does? |
What exactly should I check? I dont see dll and pak files in this project. |
For |
I copy dependencied to project, it works fine if I run application from project Release folder, but after ClickOnce setup I get error in libcef.dll. |
Have you read #500 as noted above? |
About SlackWindowsApp - I've published it by clickonce and inslalled and I got same error
|
No, #500 has details on |
I've read #500. When I add dependencies dlls to my project I get error not about "Could not load file or assembly 'CefSharp.Core.dll'". But error about libcef.dll (sorry for russian lang)
|
The exception says that You can use the |
Have you got See what the dependency checker tells you, it'll throw an exception if it can't find key files. |
@amaitland BIG thx!!! dependencyCheck shows that next dependencies was missed
|
I know this is closed, but I had the same issue and this was a life saver! I also had to do a bit of coding with it to get it working, so I fixed it by: I told the settings file NOT to check for dependency: CefSharp.CefSettings set = new CefSharp.CefSettings(); Until I did this, I couldn't do ClickOnce, nor would the application open when called as a process or from a shortcut yet WOULD work when double clicking on the Exe file! Took a bit of hunting through log files, and this article to get it sorted!! |
Facing same issue. |
See #1314 (comment) for details. Locking this conversation as it's entirely outdated (hasn't been updated since 2016). If you are still having problems then please join in the discussion at #3613 |
Hey all,
I've recently created a project using the latest Prerelease version through NuGet. It runs swimmingly through Visual Studio, however, when I publish the application (through VS creating the one click install type of application), the installed application always fails to start.
When I've been able to catch the error, it states that it was unable to load the CefSharp.Core dependency. I've tinkered with the cef.redist package as well and got it so that the application would install and actually open a window, but the browser fails to load properly.
Now this could be my own mistake as I'm new to publishing applications, but I haven't had this problem with other small projects that have third party dependencies.
So far I've tried building in both x86 and x64 as well as building in a specific configuration and removing the unnecessary references (i.e. build in x86 and remove all x64 references). That didn't seem to change anything. When I've looked at the other issues listed here, they seemed to be revolving around errors while in VS, not in a published application, so I thought this would still be fit as a new issue.
The text was updated successfully, but these errors were encountered: