I have this randomly occurring problem where IIS Express does not recognize when I make a change to an ASP page. It serves up the previous version of the page instead.
I
I have not experienced this problem since upgrading IIS Express from version 7 to 10 (download here).
See here for how to detect your version of IIS Express.
I have the exact same behavior. So far, this seems to have fixed it:
In the applicationhost.config of IISExpress (%userprofile%\My Documents\IISExpress\config), under <system.webServer>
, I had a caching disabled, but not kernel caching. Here is what I have now:
<caching enabled="false" enableKernelCache="false">
</caching>
So far, it seems to do the trick. I hope it will help you out as well.
It seems to have a small negative impact on performance, but in my case it is worth it.
EDIT
After using it for some time, I started getting the cached pages served again. Then I tried closing VS, make sure IISExpress was stopped, open VS again, and start the website without debugging (Ctrl+F5
), and so far no caching issues.
One difference though... My version of IISExpress.exe is 8.0.8418.0 (and Visual Studio is 12.0.21005.1 REL). I hope this helps you, Keith, as I know how annoying this bug is. Good luck.
Not only do you have to set this setting:
<caching enabled="false" enableKernelCache="false"></caching>
as Robert wrote, but the one below, too:
<section name="caching" overrideModeDefault="Deny" />
to keep caching off at all times.