I’m trying to use Wisej, Openxml and MS Sql in my application.
WiseJ seems to require system.memory version 4.0.1.2, and it is not available in NuGet.
As such, when I use System.memory version 4.6.3, it is not compatible.
What is the solution to this?
If you are using net9 there is no version mismatch usually. If you are using net48 you may have to normalize the versions of the different libraries you are importing. It’s very common.
This is how to do it: https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/redirect-assembly-versions
It’s quite simple. I usually go for “0.0.0.0-9.9.9.9” to bind to the unified version.
Here is the updated web.config file
I included the full file as well as the snippet you can paste into your web.config file. I would recommend pasting in the snippet so that you can keep your current settings.
When I update my Web.config to your example, the application won’t run on my local machine.
Is this only for deployed applications?
You do not need to downgrade anything or find version 4.0.1.2.
You simply have to add (or verify) a binding redirect in your web.config so that all components use the newer version.
Example web.config snippet is attached
If this doesn’t work, please post a compliable test case with the bin and obj folders removed and we’ll investigate further.
Please login first to submit.