DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Error DNN upgrade to 9.13.5 System.Runtime.CompilerServices.Unsafe

 13 Replies
 4 Subscribed to this topic
 33 Subscribed to this forum
Sort:
Page 2 of 2 << < 12
Author
Messages
Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
So this boils down to a mismatch between the dll in the bin folder, the web(dot)config redirects and what some other dll needs to work.
The normal way is that all extensions declare the version they need in their manifest and DNN we automatically create a binding redirect in the web(dot)config so that all extensions are fed the highest version. This is not perfect but in your current situation either the dll is of the wrong version (right click on it and look at the details) or the web(dot)config has a binding redirect to a version that is not present in the web(dot)config folder, or some extension did not declare its dependency on it in their web(dot)config. Let's start from knowing the versions of the DLL and if you find it in the web(dot)config. Then you can check if you see it listed in the database table "Assemblies" which should tell which module depends on it and which version (throught the PackageID reference to the Packages table).
Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!

If I remember correctly it polyfills many modern .Net APIs so they can work on .NetStandard

Advanced Member
Posts: 243
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
2 Engaged Reader
Engaged Reader
You are an engaged reader!
We only use DNNSharp Action Form in this DNN instance not 2SXC

So dll version in bin, in web . config reference and record in assemblies table should be the same?

Dll details is file version 4.700.20.12001 so I put 4.7.2.1 in the web . config reference?
Growing Member
Posts: 45
Growing Member

This error occurs when DNN 9.13.5 is trying to use a version of System.Runtime.CompilerServices.Unsafe that does not match the expected version (4.0.6.0). This is usually due to an outdated or incorrect assembly reference.
 

3ART TechnologiesRegards,
3ART Technologies Expert

3ART Technologies
Experts in Analysis, Design & Development for DNN and SharePoint Solution
https://www.3art.tech/
Page 2 of 2 << < 12

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved