Error
When upgrading from 9.1.1 to 9.2, the user encounters the following error message:
CS0117: 'DotNetNuke.Common.Globals' does not contain a definition for 'IsTabPreview'
Root Cause
This error occurs when upgrading a DNN website from 9.1.1 to 9.2 without upgrading DNN Sharp modules.
See stack trace below:
2018-04-16 00:01:59,934 [GVNWWeb01][Thread:46][ERROR] DotNetNuke.UI.Modules.ModuleHost - System.Web.HttpCompileException (0x80004005): c:\inetpub\sites\usf\DesktopModules\HTML\HtmlModule.ascx(195): error CS0117: 'DotNetNuke.Common.Globals' does not contain a definition for 'IsTabPreview'
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc)
at DotNetNuke.UI.Modules.WebFormsModuleControlFactory.CreateModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration)
at DotNetNuke.UI.Modules.ModuleControlFactory.LoadModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration)
at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl()
2018-04-16 00:32:08,938 [GVNWWeb01][Thread:19][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.Exception: Failed to unzip common static files in the initialization process. ---> System.IO.FileNotFoundException: Could not load file or assembly 'SharpZipLib, Version=0.81.0.1407, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at DnnSharp.Common.IO.ZipUtils.ExtractZip(Stream sourceZip, Action`2 extractedFileStream, Func`2 acceptFile)
at DnnSharp.Common.IO.ZipUtils.ExtractZip(String sourceZip, Action`2 extractedFileStream, Func`2 acceptFile)
at DnnSharp.Common.IO.ZipUtils.ExtractFilesToMemoryStream(String sourceZip, Action`2 extractedFile, String[] files)
at DnnSharp.Common.ModuleUpgrade.UnzipVersionedResource(String zipFileName, DirectoryInfo targetDir, String versionFilePath, Action`2 fnLog)
at DnnSharp.SharpScheduler.Core.App..ctor()
--- End of inner exception stack trace ---
Solution
Upgrade modules from the vendor DNN Sharp to resolve the issue.
Content author: Giancarlo Mora
Comments
0 comments
Please sign in to leave a comment.