Hi
I have recently upgraded our website from DNN 7.4.2 to 8.0.4 and I’m facing couple of issues.
One of them is with HTML module, since the upgrade some page which has HTML and open content module has been giving error message as “A critical error has occurred please check event viewer”.
When this error occurs the relevant page only shows the heading of that module and rest of the content is missing. If I clear the cache on the website “tools->clear cache” it seems to work again for couple of hours.
Event viewer shows 5 following exceptions.
1)
AbsoluteURL:/Default.aspx
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:eb09b26e-7e40-4425-bb4e-ad4de443aea9
AssemblyVersion:
PortalId:-1
UserId:-1
TabId:-1
RawUrl:
Referrer:
UserAgent:
ExceptionHash:z0ytBw7+Ah7GQFnewSeLOg==
Message:Unable to cast object of type 'System.Boolean' to type 'System.String'.
StackTrace:
at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.<>c__DisplayClass13_0.b__0(ParameterMapping mapping)
at DotNetNuke.Collections.CollectionExtensions.ForEach[TType](IEnumerable`1 source, Action`1 action)
at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.Load(CacheItemArgs args)
at DotNetNuke.Common.Utilities.DataCache.GetCachedDataFromRuntimeCache(CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired)
InnerMessage:
InnerStackTrace:
Source:DotNetNuke
FileName:
FileLineNumber:0
FileColumnNumber:0
2)
AbsoluteURL:/Default.aspx
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:b2d90161-0d9b-492e-ae42-48342d591ce7
AssemblyVersion:
PortalId:-1
UserId:-1
TabId:-1
RawUrl:
Referrer:
UserAgent:
ExceptionHash:qQLdPN8E9hqATouWpG1mVQ==
Message:Object reference not set to an instance of an object.
StackTrace:
at System.Object.GetType()
at ASP.desktopmodules_html_htmlmodule_ascx.SetUpForDnn8(Boolean value)
at ASP.desktopmodules_html_htmlmodule_ascx.IsTokenizationEnabled()
at ASP.desktopmodules_html_htmlmodule_ascx.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content)
at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at DotNetNuke.UI.Containers.Container.get_ModuleControl()
at DotNetNuke.UI.Containers.Container.ProcessModule()
at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)
InnerMessage:
InnerStackTrace:
Source:mscorlib
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:
Server Name
3)
AbsoluteURL:/Default.aspx
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:7da4cc83-b92f-446c-9bfb-ff0f02aad061
AssemblyVersion:
PortalId:-1
UserId:-1
TabId:-1
RawUrl:
Referrer:
UserAgent:
ExceptionHash:iR+BNmmMNwVozqxMeJeliA==
Message:Unhandled Error Adding Module to contentPane.
StackTrace:
at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)
at DotNetNuke.UI.Skins.Skin.InjectModule(Pane pane, ModuleInfo module)
InnerMessage:Object reference not set to an instance of an object.
InnerStackTrace:
at System.Object.GetType()
at ASP.desktopmodules_html_htmlmodule_ascx.SetUpForDnn8(Boolean value)
at ASP.desktopmodules_html_htmlmodule_ascx.IsTokenizationEnabled()
at ASP.desktopmodules_html_htmlmodule_ascx.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content)
at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at DotNetNuke.UI.Containers.Container.get_ModuleControl()
at DotNetNuke.UI.Containers.Container.ProcessModule()
at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)
Source:DotNetNuke
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:
Server Name:
4)
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:86412956-49ac-41b1-88b9-e6cc028c3ddd
AssemblyVersion:
PortalId:-1
UserId:-1
TabId:-1
RawUrl:
Referrer:
UserAgent:
ExceptionHash:z0ytBw7+Ah7GQFnewSeLOg==
Message:Unable to cast object of type 'System.Boolean' to type 'System.String'.
StackTrace:
at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.<>c__DisplayClass13_0.b__0(ParameterMapping mapping)
at DotNetNuke.Collections.CollectionExtensions.ForEach[TType](IEnumerable`1 source, Action`1 action)
at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.Load(CacheItemArgs args)
at DotNetNuke.Common.Utilities.DataCache.GetCachedDataFromRuntimeCache(CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired)
InnerMessage:
InnerStackTrace:
Source:DotNetNuke
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:
5)
AbsoluteURL:/Default.aspx
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:5c766aec-01db-490c-a047-5f9a35a0850c
AssemblyVersion:8.0.4
PortalId:0
UserId:11490
TabId:1280
RawUrl:/adtech
Referrer:https://51degrees.com/
UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
ExceptionHash:ZVlE6jKzMU1K7QofgfPnAQ==
Message:Object reference not set to an instance of an object.
StackTrace:
InnerMessage:Object reference not set to an instance of an object.
InnerStackTrace:
at System.Object.GetType()
at ASP.desktopmodules_html_htmlmodule_ascx.SetUpForDnn8(Boolean value)
at ASP.desktopmodules_html_htmlmodule_ascx.IsTokenizationEnabled()
at ASP.desktopmodules_html_htmlmodule_ascx.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Source:
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:
Can someone please advise me on the above and if you need more information then please let me know.