Last post Dec 21, 2007 09:47 AM by jayoungers
Dec 18, 2007 02:59 PM|jayoungers|LINK
I have a control library that was written on this computer and is installed in the GAC. When I use this library in a project, the pages all load painfully slow (even postbacks), it's like it's referencing the control library project for debugging purposes.
On other machines/environments, the pages load fine with the control library, it's only on the development computer where the slow down occurs.
Does anyone know if there's a way to trace where the page is slowing down/locking up in execution to determine why it's so slow on the development machine? One thing to note is the control library wasn't compiled in any special way, the DLL file was simply
taken out of the Bin/Relase folder.
Any help would be appreciated!
Dec 18, 2007 05:33 PM|sharma.pushp|LINK
Try to run the project with disabled "Debug mode". You can switch it off in your Web.Config file.
Search for node <compilation debug="true"> in Web.confog file.
and make it false as <compilation debug="false">
Hope it would help
Dec 19, 2007 11:42 AM|jayoungers|LINK
This does help, but not as much as it should (simple pages are still loading slowly); however, the speed up isn't worth taking away debugging.
If I find the reason behind the slow down I'll post it.
Dec 20, 2007 04:32 PM|jayoungers|LINK
Still haven't found anything. Doing a trace on a page shows that the page is loading relatively fast; so I'm not sure why it's taking 10+ seconds to render in internet explorer:
Dec 21, 2007 09:38 AM|jayoungers|LINK
It looks like setting debug to false, and adding this to the config:
Made it much more managable, but again, i lose debugging.
Dec 21, 2007 09:47 AM|jayoungers|LINK
It looks like the issue was I needed to set the scriptmanager's scriptmode to "Release"; this solved the problem.
I'm not sure as to why this needs to be exlicitly set when using my control library (which uses the scriptmanager/web.extensions), but whatever works I guess