Hello, I am currently in the process of importing a fully functional website created with Mojoportale into DotNetNuke (DNN). I have already started importing all the data, integrations, and configurations (users, modules, project tables, etc.) into the new DNN database because the database already contains these details. However, I am facing a major issue during the module creation and import phase. Occasionally, I mistakenly create a module outside the DesktopModules folder. This causes the website to crash and display only a generic error page. Even after deleting the module folder, the site continues to crash. The only solution I have found so far is to create a new website with a fresh database, which is not acceptable since adapting the database takes over a week. I cannot afford to start from scratch because the database already contains critical project and DNN data. Even after I: - Deleted the module folder - Removed the related data from the database - Deleted the DLL from the bin folder The site still won’t load.
I’m looking for a solution that would allow me to: Properly remove or repair a module that was created outside the DesktopModules folder.
Any help would be greatly appreciated! Thank you 😅
Did you also change/check the paths in the database for the extension / Module? If that does not help can you post the log4net error? Portals/_default/logs/[date].log.resources
That is the log, but I guess it shows some errors not related to the main problem.
2025-03-21 16:17:30.860+01:00 [SM139][D:2][T:1][ERROR] DotNetNuke.Web.DependencyInjectionInitialize - Unable to configure services for DotNetNuke, Version=9.11.0.0, Culture=neutral, PublicKeyToken=null, see exception for details
- LoaderException: Method 'GetCommand' in type 'DotNetNuke.Prompt.CommandRepository' from assembly 'DotNetNuke, Version=9.11.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at DotNetNuke.DependencyInjection.Extensions.TypeExtensions.SafeGetTypes(Assembly assembly, ILog logger)
2025-03-21 16:17:30.996+01:00 [SM139][D:2][T:1][ERROR] DotNetNuke.Web.Extensions.StartupExtensions - Unable to configure services for DotNetNuke, Version=9.11.0.0, Culture=neutral, PublicKeyToken=null, see exception for details
2025-03-21 16:17:31.099+01:00 [SM139][D:2][T:1][ERROR] DotNetNuke.Web.Extensions.StartupExtensions - Unable to configure services for Microsoft.Practices.Unity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, see exception for details
- LoaderException: Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Le fichier sp cifi est introuvable.
2025-03-21 16:17:31.407+01:00 [SM139][D:2][T:1][ERROR] DotNetNuke.Web.Mvc.Extensions.StartupExtensions - Unable to configure services for DotNetNuke, Version=9.11.0.0, Culture=neutral, PublicKeyToken=null, see exception for details
2025-03-21 16:17:31.409+01:00 [SM139][D:2][T:1][ERROR] DotNetNuke.Web.Mvc.Extensions.StartupExtensions - Unable to configure services for Microsoft.Practices.Unity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, see exception for details
2025-03-21 16:17:31.469+01:00 [SM139][D:2][T:1][ERROR] DotNetNuke.Web.DependencyInjectionInitialize - Unable to configure services for Microsoft.Practices.Unity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, see exception for details
2025-03-21 16:17:32.006+01:00 [SM139][D:2][T:9][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: Unhandled error loading page. ---> System.Web.HttpParseException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas. ---> System.Web.HttpParseException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas. ---> System.Web.HttpException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas.
System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
System.Web.UI.BaseTemplateParser.GetReferencedType(VirtualPath virtualPath, Boolean allowNoCompile)
System.Web.UI.BaseTemplateParser.GetUserControlType(VirtualPath virtualPath)
System.Web.UI.MainTagNameToTypeMapper.ProcessUserControlRegistration(UserControlRegisterEntry ucRegisterEntry)
System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive)
System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
--- Fin de la trace de la pile d'exception interne ---
System.Web.UI.TemplateParser.ProcessException(Exception ex)
System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
System.Web.UI.TemplateParser.ParseInternal()
System.Web.UI.TemplateParser.Parse()
System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc)
DotNetNuke.UI.Skins.Skin.LoadSkin(PageBase page, String skinPath)
2025-03-21 16:17:32.018+01:00 [SM139][D:2][T:9][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: Unhandled error loading page. ---> System.Web.HttpParseException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas. ---> System.Web.HttpParseException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas. ---> System.Web.HttpException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas.
2025-03-21 16:17:32.018+01:00 [SM139][D:2][T:9][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.
System.NullReferenceException: La r f rence d'objet n'est pas d finie une instance d'un objet.
DotNetNuke.UI.Skins.Skin.GetSkin(PageBase page)
DotNetNuke.Framework.DefaultPage.OnInit(EventArgs e)
System.Web.UI.Control.d__225.MoveNext()
--- Fin de la trace de la pile partir de l'emplacement pr c dent au niveau duquel l'exception a t lev e ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
System.Web.Util.WithinCancellableCallbackTaskAwaitable.WithinCancellableCallbackTaskAwaiter.GetResult()
System.Web.UI.Page.d__523.MoveNext()
2025-03-21 16:17:32.018+01:00 [SM139][D:2][T:9][ERROR] DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?tabid=21&error=An unexpected error has occurred&content=0
2025-03-21 16:17:32.034+01:00 [SM139][D:2][T:11][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: Unhandled error loading page. ---> System.Web.HttpParseException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas. ---> System.Web.HttpParseException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas. ---> System.Web.HttpException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas.
2025-03-21 16:17:32.037+01:00 [SM139][D:2][T:11][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: Unhandled error loading page. ---> System.Web.HttpParseException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas. ---> System.Web.HttpParseException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas. ---> System.Web.HttpException: Le fichier '/DesktopModules/DDRMenu/Menu.ascx' n'existe pas.
2025-03-21 16:17:32.038+01:00 [SM139][D:2][T:11][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.
2025-03-21 16:17:32.039+01:00 [SM139][D:2][T:11][ERROR] DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?tabid=21&error=terminate
2025-03-21 16:17:32.045+01:00 [SM139][D:2][T:11][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: La r f rence d'objet n'est pas d finie une instance d'un objet. ---> System.NullReferenceException: La r f rence d'objet n'est pas d finie une instance d'un objet.
Is there a tool that you suggest that can do that ?
Hello... The error messages are very helpful, but that's just one piece of information. You'll need to include all of the details for any of us to truly help you. All of the steps being taken, and the data/files that are moving.
The tools I rely on are: (1) for comparing the file system using WinMerge; and (2) SQL Compare and SQL Data Compare by RedGate for the database. The latter two tools are expensive. If there's a useful one that's open-source/free, I'm not aware of it.
So, the site tells you it is not finding what you telling to get :-)
In the web (dot) config there are assemblies mentioned that are nog available in the bin folder. Some times the dll is not there but most of the time, the version number of the DLL is not as mentioned in de web (dot) config. For instance, because another module installed a newer version.
I have few remarks:
- Logs indicate that some methods cannot be found in 'DotNetNuke, Version=9.11.0'. Does it correspond to the current version you installed? You could check if some DNN dlls need to be restored (from the original install zip for example), especialy DotNetNuke.dll. As Will suggested, you could use WinMerge to compare the bin folder with a fresh install of the same DNN Version. - As David said, check if /DesktopModules/DDRMenu/Menu.ascx file exists in your website folder. If yes, I suggest you to also check in your IIS Manager if some virtual web folder are configured for the corresponding website. If yes, you probably have to remove them to repair your installation. - I don't know the Microsoft.Practices.ServiceLocation dll. Maybe you can chek if this dll is registered in the web dot config assemblies section and try to comment it to see if it solve some problems.
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
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.