1

I'm trying to set an icon for an item in Sitecore 8.2. When I click the More Icons button, I get the error message below.

More Icons

The parameter is not valid.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Parameter is not valid.

Sitecore error message

What's strange is that I have this site deployed to another environment and it's working fine there. It's only giving me this error on my local development machine. I think it might be a corrupt cached image file that's causing the error, but I don't know how to clear that cache out.

4
  • Clear /App_Data/MediaCache for media, also there is an icon cache at <webroot>/temp/IconCache - try clearing that too and restart IIS
    – Richard Seal
    Commented Nov 7, 2016 at 15:52
  • I deleted the IconCache folder and the MediaCache folder and that didn't help. I also deleted the .ZIP files from the /Website/sitecore/shell/Themes/Standard and copied them from the .ZIP file from Sitecore and that didn't seem to help either.
    – Kevin
    Commented Nov 7, 2016 at 16:12
  • The error comes from the gdiplus.dll so it's hard to say what's going wrong. I think it may fail to write the bitmap because access rights don't allow it. Since it's local, you could try to set full permissions to everyone on the web root folder. Commented Nov 7, 2016 at 16:24
  • I'm pretty sure it's not a security issue. It is recreating the IconCache folder and starting to populate it as needed. But I did go ahead and reapplied security and that didn't help. And I gave "Everyone" full control and that didn't help. I just copied the IconCache folder and Themes folder from the environment that is working and it's still not working.
    – Kevin
    Commented Nov 7, 2016 at 18:49

1 Answer 1

2

Apparently the problem was not in the IconCache folder, but rather the temp folder. I deleted everything from temp and it fixed the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.