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
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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.aspxThanks!
|
Rank: Newbie Groups: Member
Joined: 5/3/2019 Posts: 7
|
Hi Thanks, How do I know which is the correct version?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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.
|
Rank: Newbie Groups: Member
Joined: 5/3/2019 Posts: 7
|
Ok I changed version and it works! Thanks
|