Use IIS to configure the local site, and then compile the project is completed, the browser loads the page becomes very slow, before although it will be slower, but up to 1 to 2 minutes to load out (may contain some precompiled loading dll file), but now become very slow, for the first time takes 6 to 7 minutes to load.
I used the 'Fusion Log Viewer' to view the assembly binding log loading, found some dlls take a long time.
Note that the image below shows the page loading assembly: assembly loding image
I made reference to this link:
http://blog.lavablast.com/post/2010/12/01/Slash-your-ASPNET-compileload-time.aspx
Then I have set the file "C:WindowsMicrosoft.NETFramework64v4.0.30319Config web.config" Configuration node:
<Compilation batch = "false" optimizeCompilations = "true">
But the effect is not obvious, while visiting some contains some user controls the time is still very slow.
Here I chose a relatively slow dll loading a log, I hope someone knows because of what is so slow, to help analyze.
Assembly Binder Log Entry (7/7/2016 @ 8:02:27 PM)
The operation was successful.
Bind result: hr =0x0. The operation completed successfully.
Assembly manager loaded from: C:WindowsMicrosoft.NETFramework64v4.0.30319clr.dll
Ruing under executable c:windowssystem32inetsrvw3wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = QUOTITwebuser
LOG: Where-ref bind. Location = C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesquotit_apps_ipro4dcf303fbb9a0eb4App_Web_mev5nz2h.dll
LOG: Appbase = file:///C:/TFS/Sprints/Sprint/src/Quotit2010.root/Quotit/Webs/Ipro/
LOG: Initial PrivatePath = C:TFSSprintsSprintsrcQuotit2010.rootQuotitWebsIprobin
LOG: Dynamic Base = C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesquotit_apps_ipro4dcf303f
LOG: Cache Base = C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesquotit_apps_ipro4dcf303f
LOG: AppName = bb9a0eb4
Calling assembly : (Unknown).
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: C:TFSSprintsSprintsrcQuotit2010.rootQuotitWebsIproweb.config
LOG: Using host configuration file: C:WindowsMicrosoft.NETFramework64v4.0.30319aspnet.config
LOG: Using machine configuration file from C:WindowsMicrosoft.NETFramework64v4.0.30319configmachine.config.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/quotit_apps_ipro/4dcf303f/bb9a0eb4/App_Web_mev5nz2h.dll.
LOG: Assembly download was successful. Attempting setup of file: C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesquotit_apps_ipro4dcf303fbb9a0eb4App_Web_mev5nz2h.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: App_Web_mev5nz2h, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
LOG: Re-apply policy for where-ref bind.
LOG: Where-ref bind Codebase matches what is found in default context. Keep the result in default context.
LOG: The post-policy assembly reference requires probing again.
LOG: Switch from LoadFrom context to default context.
LOG: Using application configuration file: C:TFSSprintsSprintsrcQuotit2010.rootQuotitWebsIproweb.config
LOG: Using host configuration file: C:WindowsMicrosoft.NETFramework64v4.0.30319aspnet.config
LOG: Using machine configuration file from C:WindowsMicrosoft.NETFramework64v4.0.30319configmachine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/quotit_apps_ipro/4dcf303f/bb9a0eb4/App_Web_mev5nz2h.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesquotit_apps_ipro4dcf303fbb9a0eb4App_Web_mev5nz2h.dll
LOG: Entering run-from-source setup phase.
LOG: Binding succeeds. Retus assembly from C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesquotit_apps_ipro4dcf303fbb9a0eb4App_Web_mev5nz2h.dll.
LOG: Assembly is loaded in default load context.
In fact, I have been wondering why the problem occurs, and I have never tu over about IIS configuration
