Currently my local instance of Kentico's form builder is not working
This is the error I am received
Does anyone have any idea why this would be breaking the form builder and why this JS file is not being found? I have compared my instance against the Dancing Goat demo site and I don't seem to be missing and files. Although it looks to be a relative path
After some more investigation and after Ben contacted us with more details we found out that the form builder error was caused by a bug when using Authorize attribute in the project globally. I am sorry for not spotting this sooner. The issue was fixed in hotfix no.39: Form builder - Form builder not working when enforcing global authorization Globally enforcing authorization over the entire MVC front-end (using the 'Authorize' attribute) resulted in errors when accessing the 'Form builder' tab of the 'Forms' application in the administration interface.
After further investigation, it seems to be something to do with Virtual Context Hash Validation.
Does anyone have any ideas why this might be failing?
This thread might help https://devnet.kentico.com/questions/cannot-view-images-or-load-scripts-from-mvc-application-in-page-builder-preview
Hotfix 12.0.9 might also be the solution
General - Error when processing bundle requests Processing of requests to virtual paths defined by the Microsoft ASP.NET Web Optimization Framework, such as JavaScript or CSS bundles, resulted in an error (null reference exception). The errors occurred only for requests handled by the Kentico web project (not in MVC applications using the Kentico API).
Hey Matus,
Thank you for your help
I've had a go at the solutions mentioned in that thread but the problem is still persisting. I'm on hotfix version 34 too.
Regarding your last paragraph - does this mean there is nothing I can really do as it is being handled by the Kentico Web forms solution?
Many thanks
What is your MVC code and setup, please? Are you forcing lowercase URLs?
It's pretty standard MVC set up for Kentico 12 SP. I am not enforcing lowercase URLs, should I be?
This is happening when using 'getmedia' to retrieve images from the media library, so I might log a support ticket.
Yes please, contact our support. This issue appeared few times before the service pack - but you are running newer hotfix. I would maybe tried applying the latest one, update all the Kentico NuGet packages in the MVC app and build the solution to see if it makes any difference.
Please, sign in to be able to submit a new answer.