Open clintcfavor opened 9 months ago
Sorry for my slow reply - can you confirm if modules/_protected/VisualCompareMode/module.config exists in your solution and is set to copy to output directory?
It appears the route to VisualCompareController is not resolving properly. The route should be something like /EPiServer/VisualCompareMode/VisualCompare but yours is resolving to just /VisualCompare
Version 1.2.0 should be available on the nuget feed soon. It makes some adjustments that might fix this, but a minimum should handle errors better. Please test and let me know your findings.
Version 1.2 is now available on the Optimizely Nuget feed
Hi @OMGPizzaGuy, @davidknipe! Thanks for the replies and sorry for having to reply so late!
I've tested the addon again locally, but still gives me the 404 error (see below)
Also, as what @OMGPizzaGuy has mentioned in the previous comment, it seems like the module.config
is missing (see below)
Have I missed a step other than installing the package? Gladly appreciate your replies!
The latest changes include the module.config in the VisualCompareMode.zip package as we can leverage compiled views now. The zip package should also copy to the modules/_protected/VisualCompareMode directory on build. I'm not sure if it did or is only reference in that screenshot - you could look at the directory outside of Visual Studio to check.
Additionally, you need services.AddVisualCompareMode();
in Startup.cs to register the module.
We currently have two language versions for our content but I'm getting 404 errors for
VisualCompare
when testing addon in localhost environment. Tried testing it with draft and published changes but got the same error message (screenshot below)Currently have these addon versions: VisualCompareMode - v1.1.0 EPiServer.CMS - v12.25.1