I am trying to use the CefSharp.OffScreen(41.0.0)
Nuget Package within a WCF Service Application, and I'm getting the following error while trying to run the service from Visual Studio 2013:
Could not load file or assembly 'CefSharp.BrowserSubprocess.Core.DLL' or one of its dependencies. The specified module could not be found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'CefSharp.BrowserSubprocess.Core.DLL' or one of its dependencies. The specified module could not be found.
The mentioned assembly is present in the project's bin folder as well as all the required assemblies listed on CefSharp's Website. If there is in fact another assembly required I haven't figured out what it is.
A few other points worth mentioning:
- It is easy to reproduce: Start with VS2013's "WCF Service Application" template simply added the CefSharp.Offscreen Nuget Package.
- I build the project in x86.
- CefSharp also depends on the Visual Studio C++ 2012 redistributables. I copied those file into the bin folder but still get the same error.
- I tried the solutions in the SO question here, to no avail.
CefSharp
works fine when referenced from a Console Application or WPF Application.
CefSharp
,CefSharp.Core
andCefSharp.OffScreen
? There should be no reference to theBrowserSubProcess
, it's spawned when your application runs, it's not a dependency. – MalekAsp.Net
doesn't handleunmanaged
assembles particularly well. I believe the problem your facing is outlined at #17333395 – MalekGitHub
you can see if the other user had any success. – Malek