Thank you David, I raised an issue with Slimsy on GitHub.
However, it could also be related to me doing something wrong which would cause the code to try and call the wrong constructor. The strange thing is, I vaguely remember using ConvertImgToSrcSet in a somewhat similar scenario and it worked back then.
"System.MissingMethodException" when using Html.ConvertImgToSrcSet
This is on Umbraco 8.6
On my DocType
ContentPage
, I have a RichText property editor with aliasRichTextTest
. When I do this in a view:then I get a
System.MissingMethodException
. I get the exception whether there are images in the RTE or not.I can use Slimsy's other methods like
GetCropUrl
andGetSrcSetUrls
without trouble.My
Image
media type has theUpload
property set toImage Cropper
.Any idea what I am doing wrong?
Here is the complete error trace:
Looks like that constructor was removed last year. https://github.com/umbraco/Umbraco-CMS/commit/a78a4ff8075ace6b97d49b4b20c992c5c7647a33#diff-b04d3f9183f16b8af3bd4394f7b655d6
I'd raise it as a bug
Thank you David, I raised an issue with Slimsy on GitHub.
However, it could also be related to me doing something wrong which would cause the code to try and call the wrong constructor. The strange thing is, I vaguely remember using
ConvertImgToSrcSet
in a somewhat similar scenario and it worked back then.I have also tried but it is not working.Could you please help me out??.
This was indeed a bug, caused by a changed method in Umbraco 8.6.
The latest Slimsy version v3.0.0-beta4 fixes the issue. This version requires Umbraco 8.6+. Thank you to Jeavon for the quick fix!
Could Please show me the structure of code? please.It can help me out.
@neel: I didn't have to change anything on my end. After updating to Slimsy version v3.0.0-beta4, it worked as described in the Slimsy documentation.
If you post your code which doesn't work, may be I have an idea. It's hard to say something without that.
is working on a reply...