System.AggregateException after installing Umbraco.Forms.Core
k

Korsier

9 months ago
Hello. I've been working with Umbraco for a few months and have been tasked with upgrading a legacy (v8.x) Umbraco site to v13.6. This has gone fairly smoothly and the site is (mostly) up and working. However, the original site uses several Contact Us type forms implemented using Umbraco Forms. So I installed Umbraco.Forms.Core (v13.4.0) via NuGet and rebuilt the app. Immediately upon running the site in my dev environment I get the error "System.AggregateException: 'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Umbraco.Forms.Core.PropertyEditors.ValueConverters.FormPickerValueConverter Lifetime: Singleton ImplementationType: Umbraco.Forms.Core.PropertyEditors.ValueConverters.FormPickerValueConverter': Unable to resolve service for type 'Umbraco.Forms.Core.Services.IFormService' while attempting to activate 'Umbraco.Forms.Core.PropertyEditors.ValueConverters.FormPickerValueConverter'.)'" I've spent some time Googling this problem and my reading suggests that its some form of dependency injection problem (some object cannot be constructed), however I could find nothing specific to Umbraco Forms. I'm reaching out to the community in the hope that someone can point me in the right direction. I have access to the original v8 app and it has an UmbracoForms.config file inside the App_Plugins\UmbracoForms folder. At this point I suspect that I may have to replicate this file (or its json equivalent) somewhere in the v13 app, along with all the other stuff that comes from the App_Plugins\UmbracoForms folder, but I don't really know where to put these files in the v13 version of the app and what exactly is needed, and this may or may not be the actual issue that is causing the problem.
ImageProcessor errors in Logs
m

MobyDog

about 1 year ago
Umbraco 8.17.1, site is running fine but it seems to be racking up hundreds or even thousands of these Errors a day. Am I looking for illegal characters in an image name? Or where else should I be looking?
System.ArgumentException: Illegal characters in path.
   at System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[] str, Boolean onlyCheckExtras)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)
   at System.Web.InternalSecurityPermissions.PathDiscovery(String path)
   at System.Web.Hosting.HostingEnvironment.MapPath(VirtualPath virtualPath)
   at ImageProcessor.Web.HttpModules.ImageProcessingModule.<ProcessImageAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   ----trimming----
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
While typing this message this afternoon I actually got 2 like this :
ImageProcessor.Common.Exceptions.ImageProcessingException: ProcessImageAsync 558 : The request /media/ykmlwb44/4-outlet-130l-red-low-res.jpg?fbclid=IwZXh0bgNhZW0CMTEAAR3fQ0xZ6tLYX6DrAtZbk4-zEUELr0Ukz3Ynt_XTvNmFkJZda55U0ZIbZ0Q_aem_9_jcDQogLzo7hF1E_uButQ could not be understood by the server due to malformed syntax.
I'm wondering if it's just someone spamming ImageProcessor along the lines of this: https://dev.to/skttl/stop-spammers-from-abusing-imageprocessor-to-flood-your-umbraco-8-logs-2c5m and if I'm safe enough to just filter them out of the logs. The site seems fine.