system.memory 4.0.1.2 required

0
0

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?

  • You must to post comments
0
0

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.

 

 

  • You must to post comments
0
0

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.

 

Attachment
  • You must to post comments
0
0

When I update my Web.config to your example, the application won’t run on my local machine.

Is this only for deployed applications?

  • Julie(ITG)
    Can you post a test case please?
  • Julie(ITG)
    Sorry, I think my web.config file was incorrect. See other comment where I posted the correct web.config
  • You must to post comments
0
0

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.

Attachment
  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.