Could not load file or assembly 'System.Numerics.Vectors,
Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or
one of its dependencies. The located assembly's manifest definition
does not match the assembly reference.
Anyone know how to remedy this error?
I have System.Numerics.Vectors 4.5.0 installed. Nuget doesn't have 4.1.3 available only 4.1.1 and 4.3.0. What should I do?
can you post the full stack trace from the error message please?
It sounds like there is a reference in the web.config to "System.Numerics.Vectors, Version=4.1.3.0,", can you search teh web.cofnig for any entries wit the string "System.Numerics.Vectors" and paste them here please?
ModelsBuilder error
Umbraco v 8.8
Anyone know how to remedy this error?
I have System.Numerics.Vectors 4.5.0 installed. Nuget doesn't have 4.1.3 available only 4.1.1 and 4.3.0. What should I do?
Hi Ben,
can you post the full stack trace from the error message please?
It sounds like there is a reference in the web.config to "System.Numerics.Vectors, Version=4.1.3.0,", can you search teh web.cofnig for any entries wit the string "System.Numerics.Vectors" and paste them here please?
@BrendanRice
This was in csc.exe.config:
I read in another forum that I should add this to msbuild.exe.config: Some reason the forum isn't showing the code here...
That didn't help.
I tried to post the full stack trace it was too long. here's a link to it: https://www.dropbox.com/s/g0elcir5n0sjubg/modelsbuilder-error-stack-trace.txt?dl=0
You'll need to change the binding redirect to match the version of the dll you've referenced.
Anywhere in the .config file that references 4.1.3.0 will need changed to 4.5.0 (possibly 4.5.0.0).
Also important to check the public key of the dll matches the PublicKeyToekn in the .config reference.
Here is how:
https://port135.com/public-key-token-assembly-dll-file/
Once you've fixed the references it should* work.
Let us know how it goes.
FYI...the public key token was the same for 4.5 as it was for 4.1.3
The reference I updated in csc.exe.config get's changed back to 4.1.3 every time I build my project.
I read in another forum to add this to msbuild.exe.config:
That didn't help either.
Try move the assembly binding to the web.config
That didn't work either.
Here's what I put in web.config:
Updated stack trace in case it helps.
https://www.dropbox.com/s/irfsrgj4mkseqnr/modelsbuilder-error.txt?dl=0
"The located assembly's manifest definition does not match the assembly reference."
^ this normally suggests that what is in the config file doesn't match what is in the bin folder.
Usually when something like this happens it's to do with incorrect version numbers or the public key.
Sorry I can't be any more help.
For that you can also check the reference in the project file (open the .csproj in a txt editor).
Look for something like:
Maybe compare it to what is in the Nuget folder and the config file.
is working on a reply...