Upgrade to V10.0.1 breaks custom modules with consistent error "Parameter name: CacheKey" #6666
Replies: 9 comments 1 reply
-
check the table DesktopModules and make sure your module does not have -1 as the value for SupportedFeatures, if it does, try changing the value to 0. |
Beta Was this translation helpful? Give feedback.
-
Thank you michael-lorenz that worked! Now seeing a long list of these errors: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). Any thoughts here as well? Appreciate the guidance! |
Beta Was this translation helpful? Give feedback.
-
thank you @bdukes for helping to keep track of this. Should I open a new ticket for the error that I shared in the last post? Add(Control child)? |
Beta Was this translation helpful? Give feedback.
-
This would be more general help about webforms than something DNN specific. Usually a control has code blocks that need to run and then are added to another control programmatically after some lifecycle events have already happened so the controls collection is locked. A best practice in WebForms is either:
If the code block only renders a string or something very simple the usual quick fix is to replace it with an asp:label or an asp:literal or some control that makes more sense for the use case. |
Beta Was this translation helpful? Give feedback.
-
Thank you @valadas for the reply. This DNN application with our custom users controls has been running in Production for several years under V9.11.2 and we executed the upgrade to V10.0.1 and the site doesn't run and we see the below error repeatedly in the log without making any code changes, so we assume this is something related to the upgrade. Looking to see if anyone else has experienced this and what was done to resolve. Thank you! [FATAL] DotNetNuke.Services.Exceptions.Exceptions - System.Web.HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). |
Beta Was this translation helpful? Give feedback.
-
Well, it may be in combination with DNN changes. Mixing code blocks and control collection changes is brittle and another change in DNN combined with this may have just made it crop up now and not before. The best practice is to do only one or the other for that reason. |
Beta Was this translation helpful? Give feedback.
-
This error stems from |
Beta Was this translation helpful? Give feedback.
-
Thank you @bdukes! Yes we are also having compatibility problems with DNNGo third party modules that we are looking further into. We are aware of the breaking changes related to this. For example, [ERROR] DotNetNuke.Framework.Reflection - DNNGo.Modules.ThemePluginPro.baseController,DNNGo.Modules.ThemePluginPro |
Beta Was this translation helpful? Give feedback.
-
Yes, ISearchable has been marked obsolete since v7.1.0 so you probably need to get some updates on 3rd party modules before upgrading DNN. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there an existing issue for this?
What happened?
Hello everyone,
After upgrading 2 separate DNN sites to V10.0.1 we are getting runtime errors for all of our custom modules that follow the same pattern below where the name of the module appears in the error message:
[ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.Exception: Error Creating BusinessControllerClass '' of module() id=(484) in tab(40) and portal(0) ---> 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)
Any hints as to what might be the cause and how to solve?
Thank you!
Ben DiMolfetta
Steps to reproduce?
Upgrade to V10.0.1 -- upgrade wizard completes without errors
Try to run site and it doesn't load
Current Behavior
No response
Expected Behavior
No response
Relevant log output
Anything else?
No response
Affected Versions
10.0.1 (latest v10 release)
What browsers are you seeing the problem on?
Chrome
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions