We upgraded our DNN website to DNN 9.7.1. (with AF version 5.7.16) and now we get this error: [NullReferenceException: Object reference not set to an instance of an object.] DnnSharp.Common.InitCommonDlls.Utils.WebConfig..ctor() +155 DnnSharp.Common.InitCommonDlls.AppStartup.ExecuteStartupTasks() +296 DnnSharp.Common.InitCommonDlls.AppStartup.Initialize() +8 [InvalidOperationException: The pre-application start initialization method Initialize on type DnnSharp.Common.InitCommonDlls.AppStartup threw an exception with the following error message: Object reference not set to an instance of an object..] System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +890 System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +167 System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +133 System.Web.Compilation.BuildManager.ExecutePreAppStart() +178 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +746 [HttpException (0x80004005): The pre-application start initialization method Initialize on type DnnSharp.Common.InitCommonDlls.AppStartup threw an exception with the following error message: Object reference not set to an instance of an object..] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +122 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +737
Looks like the latest version of DNNSharp Action Form isn't compatible with DNN 9.7.1. I assume DNNSharp will release a fix within the next days
Were you provided with a solution?
Already did Joe. THey provide links to the download site which has a HotFix and a stable version
https://www.dnnsharp.com/...AFORM&v=05.07.17
https://www.dnnsharp.com/...AFORM&v=05.09.11
Not clear if these are the solution but leads to a new question. How can I load these if I can't get to the UI to install the extension? I've tried overlaying the 9.7.1 upgrade package and including the hot fix into the install/ module directory but when I try to run the upgradewizard I get the regular .Net error page.
Is there a way for me to install this hot fix if the site isn't coming up?
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] DnnSharp.Common.InitCommonDlls.Utils.WebConfig..ctor() +155 DnnSharp.Common.InitCommonDlls.AppStartup.ExecuteStartupTasks() +296 DnnSharp.Common.InitCommonDlls.AppStartup.Initialize() +8 [InvalidOperationException: The pre-application start initialization method Initialize on type DnnSharp.Common.InitCommonDlls.AppStartup threw an exception with the following error message: Object reference not set to an instance of an object..] System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +890 System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +167 System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +133 System.Web.Compilation.BuildManager.ExecutePreAppStart() +178 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +746 [HttpException (0x80004005): The pre-application start initialization method Initialize on type DnnSharp.Common.InitCommonDlls.AppStartup threw an exception with the following error message: Object reference not set to an instance of an object..] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +122 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +737
Posted By Santiago on 15 Nov 2020 02:36 PM Were you provided with a solution?
Yes, there are new versions which you need to install before upgrading DNN
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.