It looks like when an ICO file is uploaded to the Umbraco media library it's being uploaded as a File type instead of an Image type.
So your exception is being thrown when it tries to convert it from an IPublishedContent to a type of Image.
If you go into the Umbraco back office, into your media section, and then explicitly upload the ICO file as an Image you should find it resolves the issue.
Error when adding favicon (Umbraco 8)
Hi! When i try to add favicon to my site the site crashes and i get this error message:
I only encounter this error when i use the file format "ico" and not with PNG. But when adding with PNG, the favicon doesnt change.
Anyone got any ideas on how to solve this? Thank you.
Hi Erik,
It looks like when an ICO file is uploaded to the Umbraco media library it's being uploaded as a File type instead of an Image type.
So your exception is being thrown when it tries to convert it from an IPublishedContent to a type of Image.
If you go into the Umbraco back office, into your media section, and then explicitly upload the ICO file as an Image you should find it resolves the issue.
Cheers
Nik
Hi Nik,
That solved it! Thank you so much!
is working on a reply...