Launching any web site from VS2008 takes 20 seconds

  • Thread starter Thread starter DeanB
  • Start date Start date
D

DeanB

Hello all,

I'm getting a delay of around 10-30 seconds every time I CTRL-F5 even
the simplest web sites. The sites come up ok in the end. On my work
computer, there is never a delay. I'm putting the files in a directory
on my hard drive that is NOT under inetpub.wwwroot.

Can anyone help? Its not a big deal, just annoying. (I'm just starting
out with web development, so it could be a really basic setting or
something trivial.)

Thanks

-Dean
 
Hello all,

I'm getting a delay of around 10-30 seconds every time I CTRL-F5 even
the simplest web sites. The sites come up ok in the end. On my work
computer, there is never a delay. I'm putting the files in a directory
on my hard drive that is NOT under inetpub.wwwroot.

Can anyone help? Its not a big deal, just annoying. (I'm just starting
out with web development, so it could be a really basic setting or
something trivial.)

Thanks

-Dean

Hi Dean,

is your website on VS development server, or on IIS?

Project - Properties - Web Tab
 
Hi Dean,

is your website on VS development server, or on IIS?

Project - Properties - Web Tab

I assume that because it is NOT in C:\Inetpub\wwwroot, and that I have
not done the "create" in the IIS settings window, then it's running on
the VS server.

ps It just says about:blank and "Connecting..." while it is waiting.

Cheers,

-Dean
 
I am running IE7. Any regular web site (yahoo, etc) comes up fast.

I have IE8 and websites on IIS and DevServer and all is working quite
fast. It might be something related to the project... Do you start it
in Debug mode?
 
I looked in my config file and there is no 127.0.0.1 or reference to
any IP address as far as I can see.

Actually, I don't know it either, but the key there is to replace the
localhost with 127.0.0.1 and see if it quickly resolves the url. If it
does work faster, ping localhost, check what you get there. Check your
network connection, and antivirus software that may be the case.

http://www.grumpydev.com/2009/03/12...connect-to-the-aspnet-webserver-on-localhost/

Hope this helps
 
Ah, OK - must be something else...
I've not experienced this behaviour personally, but it certainly looks like
you're not alone:http://www.google.co.uk/search?rlz=1C1CHMA_en-GBGB328GB328&sourceid=c...

As Alexey said, is it just one project or all projects?

Are your WinForms projects subject to a similar delay when they start up....?

It is any project that I create. I have not created any desktop
projects in winforms, only WPF, and there is never a delay.

Also, the web pages come up delayed when launched from VS2008 or when
opened externally.

No AV software is running.

If I want to use IIS for a test, do I copy the entire directory over
to inetpu/wwwroot, and then do the "create" from the IIS manager?
 
Just wanted to add that it is any project, even one with just a label
on the form that (eventually!) says "hello".

what about question with localhost and 127.0.0.1 ?
 
what about question with localhost and 127.0.0.1 ?

I can't see anywhere in the settings of the project where there is
either localhost or 127.0.0.1. I see where I can set the port, but not
this.
 
I can't see anywhere in the settings of the project where there is
either localhost or 127.0.0.1. I see where I can set the port, but not
this.

I mean, can you test if this is working slow when you replaced "http://
localhost" with "http://127.0.0.1" in the browser? If you use built-in
ASP.NET development server you would need to keep the port number. For
example, if your url was http://localhost:1267, try to call http://127.0.0.1:1267.

The reason why i asked this question is that it could be something
wrong with a routing and it would be interesting to know if url with
IP address would work better or not.
 
Back
Top