[Bug]: No service for type 'DotNetNuke.Abstractions.Application.IApplicationStatusInfo' has been registered.
Is there an existing issue for this?
- [x] I have searched the existing issues
What happened?
I installed version 10.0 from scratch, and after installing it, when I try to open the site, I get the error mentioned above. I also installed version 9.13 and then upgraded to version 10.0, and the same thing is happening.
Steps to reproduce?
- Download install file of v10
- Install site on iis
- complete the install form
- after installation is complete, go to site
- System show the error.
Current Behavior
No response
Expected Behavior
No response
Relevant log output
Anything else?
No response
Affected Versions
10.0.0 (latest v10 release)
What browsers are you seeing the problem on?
No response
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Are you installing any other extensions at the same time?
Is there any error during the upgrade? If not included on the Upgrade/Install Wizard pages can you also check the /portals/_default/logs directory for the file with the current date for any errors around install/upgrade time?
Are you possibly trying for a non-us language site?
Are you installing any other extensions at the same time?
Not, it's a clean installation. new folder, new database, new iis site, all new.
In the case of the upgrade: First i'm install clean site on version 9.13 and then download the upgrade file to v10, extract the file on the site and complete the form upgrade wizard. On the end of upgrade appears the error
This is the error on log file:
2025-04-14 06:56:05.050-05:00 [WC2BPDK3][D:2][T:1][ERROR] DotNetNuke.Web.DependencyInjectionInitialize - Unable to configure services for DotNetNuke.Startup, see exception for details System.TypeLoadException: Method 'ExportPortalTemplate' in type 'DotNetNuke.Entities.Portals.Templates.PortalTemplateController' from assembly 'DotNetNuke, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. at DotNetNuke.Startup.ConfigureServices(IServiceCollection services) at DotNetNuke.Web.DependencyInjectionInitialize.ConfigureAllStartupServices(IServiceCollection services) 2025-04-14 06:56:07.516-05:00 [WC2BPDK3][D:2][T:1][FATAL] DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication - System.InvalidOperationException: No service for type 'DotNetNuke.Abstractions.Application.IApplicationStatusInfo' has been registered. at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) at DotNetNuke.Common.Globals.OnDependencyProviderChanged(Object sender, PropertyChangedEventArgs eventArguments) at DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication.Application_Start(Object sender, EventArgs eventArgs) 2025-04-14 06:56:17.940-05:00 [WC2BPDK3][D:2][T:16][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.Log.EventLog.LogController.AddLog(LogInfo logInfo) at DotNetNuke.Common.Initialize.LogEnd() 2025-04-14 06:56:18.020-05:00 [WC2BPDK3][D:2][T:16][ERROR] DotNetNuke.Services.Exceptions.BasePortalException - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: No service for type 'DotNetNuke.Abstractions.Modules.IBusinessControllerProvider' has been registered. at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) at DotNetNuke.Entities.Portals.PortalController..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance[T]() at DotNetNuke.Framework.ServiceLocator'2.InitInstance() at System.Lazy'1.CreateValue() at System.Lazy'1.LazyInitValue() at DotNetNuke.Services.Exceptions.BasePortalException.InitializePrivateVariables() 2025-04-14 06:56:18.026-05:00 [WC2BPDK3][D:2][T:16][ERROR] DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication - System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.Log.EventLog.LogController.AddLog(LogInfo logInfo) at DotNetNuke.Services.Log.EventLog.ExceptionLogController.AddLog(Exception objException, LogInfo log, ExceptionLogType logType) at DotNetNuke.Common.Initialize.LogEnd() at DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication.Application_End(Object sender, EventArgs eventArgs) 2025-04-14 06:56:18.049-05:00 [WC2BPDK3][D:2][T:16][ERROR] DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication - System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Common.Initialize.StopScheduler() at DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication.Application_End(Object sender, EventArgs eventArgs)
It may be related to https://github.com/dnnsoftware/Dnn.Platform/pull/6506
@Softpty if you want to test that "alpha" (not for production of course) you can get it from here. https://dev.azure.com/dotnet/DNN/_build/results?buildId=116313&view=artifacts&pathAsName=false&type=publishedArtifacts
This will be an artifacts zip file, but after extracting it, you will see the DNN install package in it.
It may be related to #6506
@Softpty if you want to test that "alpha" (not for production of course) you can get it from here. https://dev.azure.com/dotnet/DNN/_build/results?buildId=116313&view=artifacts&pathAsName=false&type=publishedArtifacts
This will be an artifacts zip file, but after extracting it, you will see the DNN install package in it.
The latest release: https://github.com/dnnsoftware/Dnn.Platform/releases/tag/v10.0.0 is not a working install ?
It is for me and many others but some bugs were found and there should be a new version shortly to handle those. If you want to test what I linked above, that would help know if your issue is caused by that bug before the next release.
I know I have multiple production sites running 10.0.0 without issue, but as @valadas said, there are going to be a few urgent issues that will most likely necessitate a 10.0.1 release soon
Getting this after upgrading our solution to 10.0.1. Is there any update or resolution?
This could come from a variety of sources. You'll need to look at your log file to get details.
2025-08-20 15:56:11,676 [Astech-0005][Thread:1][ERROR] DotNetNuke.Web.DependencyInjectionInitialize - Unable to configure services for DotNetNuke.Startup, see exception for details
System.TypeLoadException: Method 'ExportPortalTemplate' in type 'DotNetNuke.Entities.Portals.Templates.PortalTemplateController' from assembly 'DotNetNuke, Version=10.0.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at DotNetNuke.Startup.ConfigureServices(IServiceCollection services)
at DotNetNuke.Web.DependencyInjectionInitialize.ConfigureAllStartupServices(IServiceCollection services)
2025-08-20 15:56:12,562 [Astech-0005][Thread:1][FATAL] DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication - System.InvalidOperationException: No service for type 'DotNetNuke.Abstractions.Application.IApplicationStatusInfo' has been registered.
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at DotNetNuke.Common.Globals.OnDependencyProviderChanged(Object sender, PropertyChangedEventArgs eventArguments)
at DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication.Application_Start(Object sender, EventArgs eventArgs)
2025-08-20 15:56:22,641 [Astech-0005][Thread:21][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Services.Log.EventLog.LogController.AddLog(LogInfo logInfo)
at DotNetNuke.Common.Initialize.LogEnd()
2025-08-20 15:56:22,656 [Astech-0005][Thread:21][ERROR] DotNetNuke.Services.Exceptions.BasePortalException - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: No service for type 'DotNetNuke.Abstractions.Modules.IBusinessControllerProvider' has been registered.
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at DotNetNuke.Entities.Portals.PortalController..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstanceT
at DotNetNuke.Framework.ServiceLocator2.InitInstance() at System.Lazy1.CreateValue()
at System.Lazy`1.LazyInitValue()
at DotNetNuke.Services.Exceptions.BasePortalException.InitializePrivateVariables()
2025-08-20 15:56:22,665 [Astech-0005][Thread:21][ERROR] DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication - System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Services.Log.EventLog.LogController.AddLog(LogInfo logInfo)
at DotNetNuke.Services.Log.EventLog.ExceptionLogController.AddLog(Exception objException, LogInfo log, ExceptionLogType logType)
at DotNetNuke.Common.Initialize.LogEnd()
at DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication.Application_End(Object sender, EventArgs eventArgs)
2025-08-20 15:56:22,673 [Astech-0005][Thread:21][ERROR] DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication - System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Common.Initialize.StopScheduler()
at DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication.Application_End(Object sender, EventArgs eventArgs)
Can you re-download the upgrade package for DNN 10.0.1 and compare the DotNetNuke.dll from your site with what's in that package? I've confirmed that DotNetNuke.Entities.Portals.Templates.ExportPortalTemplate has an implementation in that version, so I'm wondering if something is corrupting or replacing the DLL, or if the error message is being misleading.
We have now upgraded to 10.1.0 and getting this same:
2025-08-21 15:30:39.131+01:00 [Astech-0005][D:10][T:305][ERROR] DotNetNuke.Web.DependencyInjectionInitialize - Unable to configure services for DotNetNuke.Startup, see exception for details System.TypeLoadException: Method 'ExportPortalTemplate' in type 'DotNetNuke.Entities.Portals.Templates.PortalTemplateController' from assembly 'DotNetNuke, Version=10.1.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. at DotNetNuke.Startup.ConfigureServices(IServiceCollection services) at DotNetNuke.Web.DependencyInjectionInitialize.ConfigureAllStartupServices(IServiceCollection services)
I'm shooting in the dark here. Did you unblock the zip? Do you have .NET 4.8 installed?
Thanks @bdukes we have now got the upgrade working. I think part of the problem was that we were using the latest nuget packages available (10.0.1) but these do not correspond with the latest version of DNN (10.1.0).
Is there some kind of delay between DNN releases and the corresponding nuget packages for them being published?
Many thanks for all your help and quick responses, much appreciated
The release of the NuGet packages is a separate step that often lags a couple of days behind the main release.
The 10.1.0 NuGet packages have been released.