Dnn.Platform icon indicating copy to clipboard operation
Dnn.Platform copied to clipboard

[Bug]: No service for type 'DotNetNuke.Abstractions.Application.IApplicationStatusInfo' has been registered.

Open Softpty opened this issue 8 months ago • 6 comments

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?

  1. Download install file of v10
  2. Install site on iis
  3. complete the install form
  4. after installation is complete, go to site
  5. 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

Softpty avatar Apr 14 '25 12:04 Softpty

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?

mitchelsellers avatar Apr 14 '25 13:04 mitchelsellers

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)

Softpty avatar Apr 14 '25 14:04 Softpty

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.

valadas avatar Apr 14 '25 15:04 valadas

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 ?

Softpty avatar Apr 14 '25 15:04 Softpty

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.

valadas avatar Apr 14 '25 16:04 valadas

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

mitchelsellers avatar Apr 14 '25 22:04 mitchelsellers

Getting this after upgrading our solution to 10.0.1. Is there any update or resolution?

ScottRJones avatar Aug 20 '25 14:08 ScottRJones

This could come from a variety of sources. You'll need to look at your log file to get details.

bdukes avatar Aug 20 '25 14:08 bdukes

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)

ScottRJones avatar Aug 20 '25 14:08 ScottRJones

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.

bdukes avatar Aug 20 '25 15:08 bdukes

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)

ScottRJones avatar Aug 21 '25 14:08 ScottRJones

I'm shooting in the dark here. Did you unblock the zip? Do you have .NET 4.8 installed?

bdukes avatar Aug 21 '25 14:08 bdukes

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

ScottRJones avatar Aug 21 '25 15:08 ScottRJones

The release of the NuGet packages is a separate step that often lags a couple of days behind the main release.

bdukes avatar Aug 21 '25 15:08 bdukes

The 10.1.0 NuGet packages have been released.

bdukes avatar Aug 21 '25 16:08 bdukes