Localhost is very slow starting an MVC4 web application RRS feed

  • Question

  • User-869400968 posted

    In Visual Studio, if I go Debug > start debugging or Debug > Start without debugging, the browser appears after a few seconds, but then is sits there with the connecting message for about 30 secs before the page loads.

    I have created a brand new empty MVC4 internet application to check it is not breakpoints or something.

    It is the same on Firefox and Internet Explorer.

    Subsequents clicks on the links on the browser page (or pressing F5 in the browser) are very fast - it is just the initial load after compliation that is slow.

    The only uncomented line in my hosts file is:       localhost

    If I load webpages with Apache it is very quick (of course I have apache switched off when I'm running the VS tests).

    I have applied all updates to Visual Studio.

    I'm on visual Studio 2012, windows 7 64-bit, 8G RAM

    Wednesday, October 30, 2013 1:21 PM