views:

297

answers:

2

Hello all,

Having real trouble using my local host to test sites. It runs extremely slow! Sometimes up to a minute to load a page. I'm using firefox and the sites i'm testing run fine on other developers in my office local machines/ on the production server.

I've gone through the normal things :-

  1. Disabled IPv6
  2. Not running in debug mood
  3. Put the site in the highest app pool (High Isolated) on IIS 6.
  4. Taking of firewalls etc.

The problem only seems to occur when hitting pages which contain some form of .net code in the code-behind.

Appreciate that this a little bit of a vague topic / stab in the dark but would appreciate any sort of advice - it's horrible waiting a minute each refresh to try out a change!

Cheers, Sean.

A: 

After building your project the website needs some time to walk through the new dll :). It's normal that loading a webpage after rebuilding takes some time. This shouldn't happen when only changing something in for example javascript.

Younes
@Younes, that being said, it shouldn't take up-to a minute on a localhost to compile for first-run.@seanxe; do you have any .dll's in the /bin directory? Any web references or references from outside the .NET framework? Finally, any looping code or anything nasty somewhere? Can you post the code-behind in question?
Chris Laythorpe
It can be anything as simple as Response.Write(DateTime.Now.ToLongDateString()); No dll's in the project, just standard talking to a database to retrieve data. I'm not building from VS2008 because that takes forever too, i just set my home directory to the project on IIS and browse to http://localhost/.@Andrew McGregor - have checked my hosts file and localhost (127.0.0.1) is in there fine.
seanxe
Sorry but then i won't be able to help you any further. I just know that using vs2008 and the dll's after rebuilding it will take long to load your website.
Younes
+1  A: 

hope this link solve your problem! at least it works on my machine

http://stackoverflow.com/questions/1726585/firefox-and-chrome-slow-on-localhost-known-fix-doesnt-work-on-windows-7

TeYoU