Please help me, I have some issues when develop a new site using .NET Core. At this moment, I use asphostportal cloud shared hosting.
First issue I am facing is TypeLoadException: Could not load type ‘System.Data.Common.DbProviderFactories’ from assembly ‘System.Data, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
I have commented this line in my startup.cs
services.AddTransient((_) => new DatabaseContext());
Then I am getting the following error as follows
An unhandled exception occurred while processing the request. InvalidOperationException: Unable to resolve service for type ‘CoreApp.DataProvider.DataContext.DatabaseContext’ while attempting to activate ‘CoreApp.DataProvider.EmployeeDataProvider’.