Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HybridCache - Type provided must be an Enum #367

Closed
possumdelight opened this issue Sep 27, 2022 · 20 comments
Closed

HybridCache - Type provided must be an Enum #367

possumdelight opened this issue Sep 27, 2022 · 20 comments

Comments

@possumdelight
Copy link

possumdelight commented Sep 27, 2022

I am testing ImageResizer.Plugins.HybridCache 5.04 preview 1 in a .NET 4.8 project. DiskCache worked previously with version 4; however, with version 5 and HybridCache, I am stuck on this error:

"HybridCache - Type provided must be an Enum"

In VS 2022, ImageResizer, ImageResizer.WebConfig, and ImageResizer.Plugins.HybridCache were installed using Nuget Packet Manager. DiskCache was removed and all referenced in the Web.Config file were also removed.

Image Resizing works without HybridCache.

The following was added to the section of web.config...

HybridCache does not appear to be creating or writing to the cacheLocation. removing the cacheMaxSizeBytes setting yields a different error, "HybridCache is not running". Setting a cache location inside the webroot yields an error that says something about moving the cache location OUTSIDE the webroot - so it seems to be wired up at some level.

Any ideas would be appreciated.

Thank you kindly

PDT

@lilith
Copy link
Member

lilith commented Sep 27, 2022

Can you send me the package and dll versions installed?

@possumdelight
Copy link
Author

possumdelight commented Sep 27, 2022 via email

@possumdelight
Copy link
Author

possumdelight commented Sep 27, 2022 via email

@possumdelight
Copy link
Author

possumdelight commented Sep 27, 2022 via email

@lilith
Copy link
Member

lilith commented Sep 27, 2022 via email

@lilith lilith closed this as completed in 134a83f Sep 29, 2022
@possumdelight
Copy link
Author

Hi lilith!

I'm confused, you closed the issue; is it supposed to be resolved?
I upgraded all 3 components to 5.0.5 preview 2 and still have the same problem.

Thank you so much!

Kind Regards,

Charles

@lilith
Copy link
Member

lilith commented Oct 5, 2022

That's weird, it fixed it on my end. Can you paste the new stack trace here, or zip and email a project to me at lilith@imazen.io?

@possumdelight
Copy link
Author

possumdelight commented Oct 5, 2022 via email

@possumdelight
Copy link
Author

possumdelight commented Oct 11, 2022 via email

@lilith
Copy link
Member

lilith commented Oct 15, 2022

Thank you; I was able to reproduce the issue and release a few patches, can you try 5.0.7?

@possumdelight
Copy link
Author

possumdelight commented Oct 17, 2022 via email

@lilith
Copy link
Member

lilith commented Oct 17, 2022 via email

@possumdelight
Copy link
Author

possumdelight commented Oct 17, 2022 via email

@possumdelight
Copy link
Author

possumdelight commented Oct 26, 2022 via email

@possumdelight
Copy link
Author

possumdelight commented Oct 26, 2022 via email

@lilith
Copy link
Member

lilith commented Nov 4, 2022

I can only see one possible route for this to be an issue and that would be a rare race condition (now patched) during startup. Is this a persistent error? Does it repro on 5.0.8?

@lilith lilith reopened this Nov 4, 2022
@lilith
Copy link
Member

lilith commented Nov 4, 2022

Wait, I think I found it. Try 5.0.9. If that doesn't work, can you zip and e-mail your project to lilith@imazen.io?

@lilith
Copy link
Member

lilith commented Nov 17, 2022

I'm pretty sure this is now fixed; please let me know if the issue reoccurs.

@lilith lilith closed this as completed Nov 17, 2022
@possumdelight
Copy link
Author

possumdelight commented Nov 17, 2022 via email

@lilith
Copy link
Member

lilith commented Nov 17, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants