Could not Load file CefSharp.Core.Runtime error with CefSharp project built for mixed platforms - CefSharp version 100.0.140 #4065
IntegraHarlan
started this conversation in
General
Replies: 1 comment 4 replies
-
Are you trying to integrate CefSharp into IIS? The requirements imposed upon us from chromium means CefSharp is not well suited to integrate directly into IIS. If you need to specify a specific architecture you can set CefSharpPlatformTargetOverride in your csproj. https://github.com/cefsharp/CefSharp/blob/cefsharp/100/NuGet/CefSharp.Common.targets#L128 Unfortunately I don't have a clear picture of how your project is structured. Need a clearer picture if you require further assistance. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I added a project with the ChromiumBrowser in our application. It is a large Winforms application which has a couple web services.
No CefSharp code is used in the web services.
The problem I am having is the most of the projects are build as anycpu.
My project is a simple form that loads a browser when a button on the application is pressed.
The startup project is built as anycpu, but set to prefer 32 bit. For reasons I cannot explain, this cannot be changed.
When I build my project with the platform target set to anycpu, it will error with this message: "Could not load file or assembly CefSharp.Core.Runtime" when I try to load it.
If I change the platform target for my project to x86, the project form will load, but my webservices give the following error when I try to browse to them: "Could not load file or assembly 'CefSharp.BrowserSubprocess.Core.DLL"
I am not sure why this is happening. It appears that it has something to do with how CefSharp and IIS work together?
I would like to be able to build my project as anycpu and start it with out errors.
It appears that since I am loaded my form from a project that is built to prefer 32 bit, and my project is being loaded as 32 bit.
The CefSharp appears to try to load the 64 bit dll's and errors.
I tried the this solution, but it did not help.
Is there a way to load my project as anycpu and have load with out breaking my web services?
Beta Was this translation helpful? Give feedback.
All reactions