DNN Forums

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

Issue After Upgrading from DNN 09.13.9 to 10.1.2 - ArgumentException & TypeLoadException Errors(CachingProvider &ModuleIndexer)

 1 Replies
 1 Subscribed to this topic
 33 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 9
New Around Here
New Poster
New Poster
Congrats on posting!

I recently upgraded my DNN website from version 09.13.9 to 10.1.2. After the upgrade, I started encountering several errors in the logs related to caching and module indexing. The errors occur when the system attempts to index certain modules or load business controller classes. Specifically, the errors indicate an issue with an empty or null CacheKey parameter, causing a System.ArgumentException.

Additionally, there are several System.TypeLoadException errors, indicating that types such as DotNetNuke.Modules.Documents.DocumentController and DotNetNuke.Modules.Contacts.ContactController could not be loaded from the updated version of DNN.

2025-10-27 13:12:08,213 [SERVER5WIN2016][Thread:61][ERROR] DotNetNuke.Services.Search.ModuleIndexer - System.ArgumentException: Argument cannot be null or an empty string. Parameter name: CacheKey
   at DotNetNuke.Services.Cache.CachingProvider.GetCacheKey(String cacheKey)
   at DotNetNuke.Common.Utilities.DataCache.GetCache(String cacheKey)
   at DotNetNuke.Framework.Reflection.CreateType(String typeName, String cacheKey, Boolean useCache, Boolean ignoreErrors)
   at DotNetNuke.Services.Search.ModuleIndexer.GetModulesForIndex(Int32 portalId)


   at DotNetNuke.Services.Cache.CachingProvider.GetCacheKey(String cacheKey)
   at DotNetNuke.Common.Utilities.DataCache.GetCache(String cacheKey)
   at DotNetNuke.Framework.Reflection.CreateType(String typeName, String cacheKey, Boolean useCache, Boolean ignoreErrors)
   at DotNetNuke.Services.Search.ModuleIndexer.GetModulesForIndex(Int32 portalId)


I would greatly appreciate any insights into why these errors are occurring after the upgrade, and if there is any known fix for this issue. If it’s related to the cache key handling or changes in the module architecture post-upgrade, any guidance would be very helpful.

 

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!
The documentes module is probably this one https://github.com/DNNCommunity/DNN.Documents the last release dates from 2018 and it was not updated to work with DNN 10 due to lack of either someone contribute a fix or some sponsorship, see https://github.com/DNNCom....Documents/issues/25 If you are interested in doing either of those things, I'd be more than willing to help.

For the contacts module I do not remember that one being part of the former core module or other open source solution I know of, you can try to see if you find some clues about where that one came from in the Extensions page, release notes section, maybe you would get some clues as to who to contact for updates for it.

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