Very slow loading times with Visual Studio and ASP.NET MVC?

Hello,

I am developing an ASP.NET MVC website with Visual Studio 2010. The site was created and launched from a local computer with a local built-in ASP.NET Development Server, the database is somewhere on the network.

The problem is that it is very slow to load or reload the page, look at this sceen:

enter image description here Image link

Any idea why this is so slow?

Best regards

Edit: I found out that this only happens in Firefox, will IE return the ALOT page faster?

+4
source share
2 answers

http://codewut.de/content/local-iis-dev-server-firefox-slow-request-response-times

If you encounter the same problem, disable IPv6 support in Firefox: about: config → network.dns.disableIPv6 → true Apparently, Firefox and Microsoft Internet Information Server do not like to play together on Vista without human intervention.

More details (and links below): http://weblogs.asp.net/bleroy/archive/2008/12/29/why-are-scripts-slow-to-load-in-firefox-when-using-visual-studio -s-built-in-development-web-server-aka-cassini.aspx

Try it, let me / us know if this helps! I heard a lot about this problem.

+2
source

Quick fix

Just change

http://localhost:XXXX/YourSite/Here 

For

 http://127.0.0.1:XXXX/YourSite/Here 

IMO is much better than disabling IPv6 settings in Firefox, what if you want to use IPv6?

More permanent solution

If you want a slightly more permanent solution, you can edit the hosts file, usually C:\Windows\system32\drivers\etc\hosts on Windows, and add a rule for localhost:

 127.0.0.1 localhost 

Configure Firefox in particular

If you decide to disable IPv6 in Firefox itself, there are details: http://kb.mozillazine.org/Network.dns.disableIPv6

Edit: in fact, if you want to fix this in Firefox, and not completely disable IPv6, as in the link I just posted, or as pointed out by another answer to this question, give this the following: http: // theycallmemrjames. blogspot.com/2010/09/firefox-is-really-slow-testing-sites-on.html This shows how to set the rule for localhost to use only IPv4, so your browser can still use IPv6 as needed.

+8
source

Source: https://habr.com/ru/post/1342880/


All Articles