Search code examples
visual-studio-2013asp-classiciis-express

IIS Express overly caching classic ASP pages


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 can work around this problem by re-editing the page, making a small change, then undoing the change and re-saving the file. But that's annoying...

So far I've only seen this happen with Classic ASP pages, not the other files (html, js, css...) in my project. I know that IIS caches ASP pages and updates the cache when the file is updated, so something must be preventing IIS from recognizing when these files change. I just don't know what that could be.

In case it matters I'm using Visual Studio 2013, IIS Express 7.1.1557 on Windows 7.

My web.config:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.web>
        <compilation debug="true" targetFramework="4.5" />
        <customErrors mode="Off" />
    </system.web>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
    </system.webServer>
</configuration>

Solution

  • 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.