Open an aspx takes long time

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

I am wondering why it takes a long time to open an .aspx file at the first
time in a browser.
Are there some methods to improve that speed? Given that we are using the
IIS5+VS2005 C#.
Thanks for help.


Jason
 
This is likely because ASP.NET compiles the page at runtime (but only for the
first time after it has been modified). However, subsequent requests should
be faster. To avoid this 'lag' you might want to precompile the ASP.NET web
application.
 
Jason Huang said:
Hi,

I am wondering why it takes a long time to open an .aspx file at the first
time in a browser.
Are there some methods to improve that speed? Given that we are using the
IIS5+VS2005 C#.
Thanks for help.

As the other poster has indicated, if you're the first person who has used
the application, then it may be slow as it compiles the application at the
Web server. Some shops came up with a trick, to keep such applications
active on the Web server, so that the first user using the application would
not have to sit and wait as it compiled itself.

With VS 2005, you can publish the Web solution so that it makes complied
solution that doesn't need to be compiled when deployed to a Web server.
 
Back
Top