I just previously upgraded my DNN site from 7.3.3 up to 9.4.4 following the suggested upgrade path. I had originall tried to upgrade to version 9.7.2, but I am running a site that is utilizing VB.net and 9.7.2 had a known breaking change addressed in issue https://github.com/dnnsoftware/Dnn.Platform/issues/4138. So I had tried to upgrade to the latest full release of 9.7.0 that did not include that breaking change. The site upgraded and I was able to browse the site normally, but the errors came once I logged in. As soon as I navigated to the /secure-login page, there was already a red box stating that "An error has occurred. An error has occurred", it shows it two times. Nothing is show in the browser devtools as far as console errors or missing files on the network tab. The log shows these two entries:
2020-11-27 06:42:22,043 [CLSRSDEV01][Thread:61][ERROR] DotNetNuke.Services.FileSystem.FileManager - System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Common.Utilities.UrlUtils.EncryptParameter(String value, String encryptionKey)
at DotNetNuke.Common.Utilities.UrlUtils.EncryptParameter(String value)
at DotNetNuke.Services.FileSystem.StandardFolderProvider.GetFileUrl(IFileInfo file)
at DotNetNuke.Services.FileSystem.FileManager.GetUrl(IFileInfo file)
2020-11-27 06:42:22,095 [CLSRSDEV01][Thread:61][ERROR] DotNetNuke.Services.Exceptions.Exceptions - FriendlyMessage="An error has occurred." ctrl="ASP.admin_skins_logo_ascx" exc="DotNetNuke.Services.FileSystem.FolderProviderException: The underlying system threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Common.Utilities.UrlUtils.EncryptParameter(String value, String encryptionKey)
at DotNetNuke.Common.Utilities.UrlUtils.EncryptParameter(String value)
at DotNetNuke.Services.FileSystem.StandardFolderProvider.GetFileUrl(IFileInfo file)
at DotNetNuke.Services.FileSystem.FileManager.GetUrl(IFileInfo file)
--- End of inner exception stack trace ---
at DotNetNuke.Services.FileSystem.FileManager.GetUrl(IFileInfo file)
at DotNetNuke.UI.Skins.Controls.Logo.OnLoad(EventArgs e)"
I was able to login to the Admin section. I started navigating and once I got to the Site Info page, it was all blank. It did not show any options and there was a red box with the stack trace talking about File manage and the logo missing. I tried to troubleshoot it for a while but then rolled the site back to 9.3.2 and tried to upgrade to 9.4.4. This upgrade worked without any issue. I then tried to upgrade to 9.5.0, but this upgrade gave me errors very similar to 9.7.0 errors mentioned above, but at least this time I could see all the settings on the Site Info page.
Onto the issue at hand, I cannot upgrade past 9.4.4 without receiving this error:
Failed to load resource: the server responded with a status of 500 () /API/InternalServices/FileUpload/loadimage?file=179
This occurs when I log into the admin section and go to Site Info.
In 9.5.0 I can still see the Site Info, only the logo is missing. If I go to later versions the Site Info page is blank and I do not see anything. Upon checking the logs I find these errors:
2020-11-25 14:09:57,656 [CLSRSDEV01][Thread:278][ERROR] DotNetNuke.Services.FileSystem.FileManager - System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Common.Utilities.UrlUtils.EncryptParameter(String value, String encryptionKey)
at DotNetNuke.Common.Utilities.UrlUtils.EncryptParameter(String value)
at DotNetNuke.Services.FileSystem.StandardFolderProvider.GetFileUrl(IFileInfo file)
at DotNetNuke.Services.FileSystem.FileManager.GetUrl(IFileInfo file)
2020-11-25 14:09:57,658 [CLSRSDEV01][Thread:278][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.FileSystem.FolderProviderException: The underlying system threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Common.Utilities.UrlUtils.EncryptParameter(String value, String encryptionKey)
at DotNetNuke.Common.Utilities.UrlUtils.EncryptParameter(String value)
at DotNetNuke.Services.FileSystem.StandardFolderProvider.GetFileUrl(IFileInfo file)
at DotNetNuke.Services.FileSystem.FileManager.GetUrl(IFileInfo file)
--- End of inner exception stack trace ---
at DotNetNuke.Services.FileSystem.FileManager.GetUrl(IFileInfo file)
at DotNetNuke.Web.InternalServices.FileUploadController.LoadImage(String fileId)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ExceptionFilterResult.d__0.MoveNext()
2020-11-25 14:09:57,693 [CLSRSDEV01][Thread:278][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.FileSystem.FolderProviderException: The underlying system threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Common.Utilities.UrlUtils.EncryptParameter(String value, String encryptionKey)
at DotNetNuke.Common.Utilities.UrlUtils.EncryptParameter(String value)
at DotNetNuke.Services.FileSystem.StandardFolderProvider.GetFileUrl(IFileInfo file)
at DotNetNuke.Services.FileSystem.FileManager.GetUrl(IFileInfo file)
--- End of inner exception stack trace ---
at DotNetNuke.Services.FileSystem.FileManager.GetUrl(IFileInfo file)
at DotNetNuke.Web.InternalServices.FileUploadController.LoadImage(String fileId)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ExceptionFilterResult.d__0.MoveNext()
The logo file exists and works just fine in 9.4.4. I have compared all dlls in the bin folder after the upgrade to what comes in the 9.5.0 install package to see if something is out of date. I really do not have a clue how to fix this error and any help would be much appreciated.