Custom ASP.NET MVC cache controllers in a shared hosting environment?
Posted
by Daniel Crenna
on Stack Overflow
See other posts from Stack Overflow
or by Daniel Crenna
Published on 2009-09-08T20:52:02Z
Indexed on
2010/04/23
17:23 UTC
Read the original article
Hit count: 405
I'm using custom controllers that cache static resources (CSS, JS, etc.) and images. I'm currently working with a hosting provider that has set me up under a full trust profile. Despite being in full trust, my controllers fail because the caching strategy relies on the File class to directly open a resource file prior to treatment and storage in memory.
Is this something that would likely occur in all full trust shared hosting environments or is this specific to my host? The static files live within my application's structure and not in an arbitrary server path. It seems to me that custom caching would require code to access the file directly, and am hoping someone else has dealt with this issue.
© Stack Overflow or respective owner