Replies: 1 comment 3 replies
-
In future please use discussions to ask questions. https://github.com/cefsharp/CefSharp/discussions It's impossible to load two different versions of CEF in the same process. You would need to host the browser out of process with something like https://github.com/red-gate/RedGate.AppHost to use a different version.
Are you the developer of both plugins? Might be possible if you are to use the already loaded version. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We use Cefsharp to develop a plugin in order to use our web application in an application.
When we publish our plugin, We had the following Exception when we have two plugins used a different version of CefSharp
`************** Inner Exception **************
Exception type:System.InvalidOperationException
Exception message:Cef.Initialize() failed.Check the log file see https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#log-file for details.
Exception source:CefSharp.Wpf
Exception Target Site: NoInliningConstructor
at CefSharp.Wpf.ChromiumWebBrowser.NoInliningConstructor() in C:\projects\cefsharp\CefSharp.Wpf\ChromiumWebBrowser.cs:line 509
at CefSharp.Wpf.ChromiumWebBrowser..ctor() in C:\projects\cefsharp\CefSharp.Wpf\ChromiumWebBrowser.cs:line 440
************** Outer Exception **************
Exception type:System.Windows.Markup.XamlParseException
Exception message:'The invocation of the constructor on type 'CefSharp.Wpf.ChromiumWebBrowser' that matches the specified binding constraints threw an exception.' Line number '14' and line position '22'.
Exception source:PresentationFramework
Exception Target Site: RewrapException
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
'
What version of the product are you using?
What architecture x86 or x64?
x64
On what operating system?
Are you using
WinForms
,WPF
orOffScreen
? WPFhave you any idea, to specify in which version of dll must be used in each plugin ?
Beta Was this translation helpful? Give feedback.
All reactions