Open SkyeHoefling opened 5 years ago
In the 2sxc codebase there are references to the ConfigurationManager.ConnectionStrings["SiteSqlServer"]
.
Line 50 https://github.com/2sic/2sxc/blob/01bca1f263213c6ac8ec1ae1cecb52901cbbb970/ConfigurationLoader.cs
We need to investigate and confirm that the Dnn Key Master properly creates the ConnectionStrings
dictionary in the injected ConfigurationManager.
Describe the bug The key master is currently incompatible with 2sxc structured content
To Reproduce Steps to reproduce the behavior:
Expected behavior The 2sxc Content or App should be created and start the standard behavior of 2sxc
Screenshots![image](https://user-images.githubusercontent.com/17751436/52290679-953c9f00-293e-11e9-809d-a0ecc810f8a8.png)
Version:
Additional context Stack Trace: Error: App is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: A suitable constructor for type 'ToSic.Eav.Apps.Interfaces.IEnvironmentFactory' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor. ---> System.InvalidOperationException: A suitable constructor for type 'ToSic.Eav.Apps.Interfaces.IEnvironmentFactory' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor. at Microsoft.Extensions.Internal.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters) at Microsoft.Extensions.Internal.ActivatorUtilities.CreateInstance[T](IServiceProvider provider, Object[] parameters) at ToSic.Eav.Factory.Resolve[t]() in C:\Projects\eav-server\ToSic.Eav.Core\Factory.cs:line 79 at ToSic.SexyContent.ContentBlocks.ModuleContentBlock..ctor(IInstanceInfo instanceInfo, Log parentLog, ITenant tenant, IEnumerable`1 overrideParams) in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\ToSic.Sxc\SexyContent\ContentBlocks\ModuleContentBlock.cs:line 43 at ToSic.SexyContent.View.get_SxcInstance() in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\View.ascx.cs:line 24 at ToSic.SexyContent.View.Page_PreRender(Object sender, EventArgs e) in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\View.ascx.cs:line 54 --- End of inner exception stack trace ---