Hello,
I’m trying to install Umbraco 9 on a VPS Windows 2019 server and having tons of trouble with it. At the moment I have an install that works on my machine locally, but when I deploy it to the server I get this error:
An error occurred while starting the application.
ArgumentNullException: Value cannot be null. (Parameter 'factory')
System.Data.Common.DbProviderFactories.RegisterFactory(string providerInvariantName, DbProviderFactory factory)
ArgumentNullException: Value cannot be null. (Parameter 'factory')
System.Data.Common.DbProviderFactories.RegisterFactory(string providerInvariantName, DbProviderFactory factory)
Umbraco.Extensions.UmbracoBuilderExtensions.AddUmbracoSqlServerSupport(IUmbracoBuilder builder)
Umbraco.Extensions.UmbracoBuilderExtensions.AddUmbracoCore(IUmbracoBuilder builder)
Umbraco.Extensions.UmbracoBuilderExtensions.AddBackOffice(IUmbracoBuilder builder, Action<IMvcBuilder> configureMvc)
SelebusWebsite.Startup.ConfigureServices(IServiceCollection services) in Startup.cs
System.RuntimeMethodHandle.InvokeMethod(object target, object[] arguments, Signature sig, bool constructor, bool wrapExceptions)
System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(object instance, IServiceCollection services)
Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder+<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(object instance, IServiceCollection services)
Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder+<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, object instance)
Microsoft.AspNetCore.Hosting.GenericWebHostBuilder+<>c__DisplayClass13_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services)
Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
Microsoft.Extensions.Hosting.HostBuilder.Build()
redacted.Program.Main(string[] args) in Program.cs
Anyone have any idea what’s going on? The site is being served via IIS. I have .NET 5 SDK installed on the server in both 32 and 64 bit. 32 bit support is disabled in the Application Pool. The database connection string is pointing to an Azure SQL server, but I’ve also tried clearing it out to an empty string, which is the default state of a clean install. I just installed SQL Express on the server, but it made no difference. Any help would be appreciated!
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/108693-clean-install-value-cannot-be-null-parameter-factory