Welcome Guest Search | Active Topics | Sign In | Register

The manifest definition of the specified assembly does not match the assembly reference. Options
Francesco Marra
Posted: Thursday, May 28, 2020 9:51:19 AM
Rank: Newbie
Groups: Member

Joined: 5/3/2019
Posts: 7
After install EO.pdf Nuget I got those error, the app is not working anymore:

The System.Windows.Markup.XamlParseException exception occurred
  HResult = 0x80131501
  Message = 'Calling the constructor on the type' NetBrowser.MainWindow 'corresponding to the specified binding constraints threw an exception.' row number '7' and row position '9'.
  Origin = <The origin of the exception cannot be assessed>
  Stack analysis:
   in System.Windows.Markup.WpfXamlLoader.Load (XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)

Internal exception 1:
FileLoadException: The file or assembly 'EO.WebBrowser, Version = 20.1.45.0, Culture = neutral, PublicKeyToken = xxxxx' or one of its dependencies could not be loaded. The manifest definition of the specified assembly does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Internal exception 2:
FileLoadException: The file or assembly 'EO.WebBrowser, Version = 20.0.53.0, Culture = neutral, PublicKeyToken = xxxxxxx' or one of its dependencies could not be loaded. The manifest definition of the specified assembly does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I tried to update and change nugets versions but nothing works
eo_support
Posted: Thursday, May 28, 2020 10:10:30 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

This is a simple version mismatch. You will need to find out exactly which DLLs of yours are still referencing the old version, change their reference to the new DLLs, and then rebuild those DLLs. If you suspect that nuget might have corrupted the reference, you can manually update the DLL reference yourself to be sure of the version you are using:

https://www.essentialobjects.com/doc/common/refdll.aspx

Thanks!
Francesco Marra
Posted: Thursday, May 28, 2020 1:48:28 PM
Rank: Newbie
Groups: Member

Joined: 5/3/2019
Posts: 7
Hi Thanks, How do I know which is the correct version?
eo_support
Posted: Thursday, May 28, 2020 2:19:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
There is no such thing as "correct version". It's whatever version you want to use must match everywhere. For example, if your application was built with version 1 but then you put version 2 there, then it won't work. Or if your application uses version 1, but your application uses another DLL that uses version 2, then it won't work either.
Francesco Marra
Posted: Sunday, May 31, 2020 9:53:16 AM
Rank: Newbie
Groups: Member

Joined: 5/3/2019
Posts: 7
Ok I changed version and it works! Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.