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 1 of 212 > >>
Author
Messages
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!

I did an upgrade to DNN 9.13.5 and I get this error:

Error Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. 

Any suggestions how to fix this?

Thanks!

Advanced Member
Posts: 207
Advanced Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Have a read of this..

https://dnncommunity.org/...-action-form-module/
Veteran Member
Posts: 360
Veteran Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
I’d recommend upgrading to DNN 09.13.07.

David Poindexter


Creator:


Veteran Member
Posts: 363
Veteran Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
2 Most Liked
Most Liked
Congrats, your posts are really liked!
Posted By willem on 1/27/2025 8:30 AM

I did an upgrade to DNN 9.13.5 and I get this error:

Error Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. 

Any suggestions how to fix this?

Thanks!

Willem, I've several questions for you

  1. What was the DNN version you had before running the upgrade?
  2. Does your website have third party modules installed?
  3. Did you follow the suggested DNN upgrade path (link)?

In order to avoid as many problems as possible while doing an upgrade make sure you review your third party modules before running the upgrade itself and double check the vendor offers you a compatible version for your third party modules; if they offer you a new version, update the module before running the DNN upgrade.

Regards,

 

Advanced Member
Posts: 207
Advanced Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Do what Dave says, it was a assembly released problem that was resolved in 9.13.7

https://github.com/dnnsof...Platform/issues/6222

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!
So skip DNN upgrade version 9.13.5 and 9.13.6?

od

Take the System.Runtime.CompilerServices.Unsafe.dll form the 9.13.7 and overwrite it file in the bin folder?

Advanced Member
Posts: 207
Advanced Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
We have not had this problem. But from my understanding, just upgrading to DNN 9.13.7 should solve the problem.
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!
Did the upgrade to DNN 9.13.7 but still the same error. Can't get the right version of the dll loaded.


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!
Why is the System.Runtime.CompilerServices.Unsafe dll added to DNN anyway? What functionality?
Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

Couple of things:

  • Usually, the issue is that in the web . config there is a reference to a different version of a dll that in the bin folder actually resides. Solution: check the file in the bin folder, see what version it is and update the version in the web . config to that number. 
  • As ActionForm was mentioned somewhere: there is no official support for 9.13.7 yet. Check in the Plant an App docs what the supported versions are. 
  • If you have Plant an App modules and 2SXC installed in the same host, it is always a problem. It is 2 different idealogies that did not come together.
Page 1 of 212 > >>

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