Why is my aspx page loading so slowly after compilation?

I have a .Net solution with two websites in it (one client, one administrator). They share a code library that acts as a data / business layer.

When I make changes to my sites and recompile the code library, go to the page, it will take age to download; like a few minutes.

I understand that it may take a little longer to load the modified code into memory, but it takes too long.

Anyone have any ideas on how I can understand what is going on?

I think there might be some dodgey options in my project files? Or maybe something dumb in IIS (this is IIS6).

I am interested in reading this topic if someone would like to point out some of them to me!

Thanks in advance.

-ev

+3
source share
1 answer

Maybe this is because of how you deploy the site.

Try this: in Visual Studio, go to the build site and then publish the site to a directory on the local hard drive. On the server (not on the production server for your first attempt!) Delete all the files that you have. Backing up the database to .bak files and reattaching the backup files to the SQL server. FTP files from the local hard drive to the site.

This deployment method ensures that you only work with fully compiled aspx files and that all of your AppCode is in .dll format.

If this does not change the loading speed of the site, you know that this is an IIS problem.

+2
source

All Articles