I am 99% sure that this will lead to a permission issue. In IIS7, there is a new βuserβ called AppPoolIdentity, which is the default identifier for the application pool. This user has far fewer permissions than the default values ββin IIS 6.
I can reproduce your problem, I have to configure my AppPool to run as LocalSystem or a specific user with administrator privileges to get Environment.SpecialFolder.InternetCache, which makes sense when I look at the folder in question and look at its permissions.
Remember that there are security issues when starting IIS application pools with higher resolutions.
source share