HoeflingSoftware / Dnn.KeyMaster

MIT License
3 stars 3 forks source link

Incompatible with 2sxc #64

Open SkyeHoefling opened 5 years ago

SkyeHoefling commented 5 years ago

Describe the bug The key master is currently incompatible with 2sxc structured content

To Reproduce Steps to reproduce the behavior:

  1. Install the Key Master on a new DNN site
  2. Configure the Key Master
  3. Start the Key Master
  4. Install 2sxc v9.32 LTS
  5. Add a 2sxc Content or App to any page

Expected behavior The 2sxc Content or App should be created and start the standard behavior of 2sxc

Screenshots image

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 ---

SkyeHoefling commented 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.