I have an ASP.NET MVC3 web application with EF Code First. It's set up to debug using my local IIS (as opposed to the Visual Studio 2010 Developer Server). I also have Google Chrome set as my default browser.
If my repository layer uses the .Include() method, Chrome takes at least开发者_JS百科 10 seconds to return the page, usually more than 30 seconds. I can step through the debugger all the way to the View very quickly, and yet Chrome still takes that long to finish serving the page.
This problem goes away if I do any of the following
Take out the .Include()
Use IE or Firefox
Use VS Development Server instead of local IIS
I have no idea why this would happen, or how to further troubleshoot it.
Turns out it was the Glimpse NuGet package. I disabled it in my web.config and it works fine now.
精彩评论