开发者

Entity.Include() + local IIS development setup + Chrome = long browser requests

开发者 https://www.devze.com 2023-03-11 15:24 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消