cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework

Home Page:http://cefsharp.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not load file or assembly CefSharp.Wpf when dependent assembly has lower version referenced than the application loading the assembly

SauravGuha opened this issue · comments

Is there an existing issue for this?

  • I have searched both open/closed issues, no issue already exists.

CefSharp Version

111.2.20.0

Operating System

Windows 10

Architecture

x64

.Net Version

.Net 4.8

Implementation

WinForms

Reproduction Steps

I have adapter design pattern implemented. My adapter is referencing 'CefSharp.Wpf, Version=105.3.330.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138' but the application that is using the adapter is downloading Version=111.20.2.0. We want to have a single version of cefsharp across the application(always the latest), irrespective of which cefsharp is being used by adapter.

However, when loading the adapter we are getting this error from the adapter 19-09-2023 12:37:33 Status - Error

I have tried to add the bidingredirect in adapter app.config, but that is of no use.

Expected behavior

since the loading application has downloaded 111 version it should work with that one

Actual behavior

Could not load file or assembly 'CefSharp.Wpf, Version=105.3.330.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at InSync.eConnect.Http.CustomBrowser..ctor(String firstUrl, Func`2 closingCondition)
at InSync.eConnect.Http.AuthTypes.Oauth20Client.d__4.MoveNext()
VGVjaG5pY2FsIEluZm8gOiBbR2V0TWVzc2FnZSAtIDE4NiAtIExvZ2dlcl0=

Regression?

No response

Known Workarounds

Need to add reference to 111 version in adapter.

Does this problem also occur in the CEF Sample Application

Not Tested

Other information

No response