NewsletterStudio.Plugins.UmbracoForms - Cannot resolve IEmailRenderer from root provider (Umbraco 17)

Hi everyone,

I’m trying to install the NewsletterStudio Umbraco Forms integration and getting a fatal startup error. The site crashes on boot.

Environment:

  • Umbraco.Cms: 17.3.5
  • NewsletterStudio: 17.0.6
  • NewsletterStudio.Plugins.UmbracoForms: 17.0.0
  • Umbraco.Forms: 17.3.2

Error:

System.InvalidOperationException: Cannot resolve 'NewsletterStudio.Core.Rendering.IEmailRenderer' from root provider because it requires scoped service 'NewsletterStudio.Core.Rendering.IViewRenderer'.
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.ValidateResolution...

Removing NewsletterStudio.Plugins.UmbracoForms from the project allows the site to start normally, so the issue is specifically triggered by the Forms integration package.

Has anyone managed to get this working on Umbraco 17.3.x? Any workaround would be appreciated while waiting for a fix.

Thanks!

1 Like

@markusjoha Are you able to help?

Hi!

Sorry to hear that you are having issues,

I need to try to replicate this issue, there is probably some breaking change in how dependencies for the plugin are registered.

Until I have a fix out you’d have to uninstall the NewsletterStudio.Plugins.UmbracoForms package.

I’ll get back asap!

/ Markus

1 Like

@Tetiana thanks a lot for reporting this issue!

The problem was indeed with the plugin-package and one of the dependencies for a workflow type that it adds. There must have been a change in the service life time used for custom Umbraco Forms Workflows that I’ve failed to address.

I’m very grateful that you took the time to make me aware. A updated version (17.0.1) has been pushed to NuGet that should work a lot better!

Please give this a try and let me know how it works!

Sorry for the inconvenience!

3 Likes

Thank you so much for the incredibly quick fix! Updated to 17.0.1 and it’s working perfectly now. Really appreciate the fast response and for taking the time to address this so quickly!

1 Like

Great to hear @Tetiana!

I would really love to hear your feedback so please don’t hesitate to reach out here in the forum or to my email: markus [at sign here] enkelmedia.se.

All the best!

// Markus