开发者

ASP.Net Development Server performance

开发者 https://www.devze.com 2022-12-25 13:05 出处:网络
I am developing a simple ASP.Net application on a Windows 7 x64 machine using Visual Studio 2008 SP1. The computer itself is a very strong machine.

I am developing a simple ASP.Net application on a Windows 7 x64 machine using Visual Studio 2008 SP1. The computer itself is a very strong machine. I am using the built in development server for debugging.

Starting the debug process takes a mindblowingly long time (~20 minutes until the first page is loaded). Sometimes the pages load immediately. I encounter this problem only with web projects, windows forms project work as expected.

What could be the cause? How can I make the development work like it worked on an XP mac开发者_StackOverflow社区hine?

Edit: The web pages are normal pages, no heavy code, so this cannot be the reason.


try this fix for VS Studio 2008 http://support.microsoft.com/kb/946581 This fix was not included in Microsoft Update. It fixes slow build time and many more and is recommended for users that experience problems.


The main reason is probably because on each change of a page, there is a batch compile of a lot of files, on the same directory. To avoid the batch compile use this flag on the web.config. That way only the changed file will be compile, the one you work on it, and not others.

<compilation batch="false" ... >

Relative : Slow Performance -- ASP .NET ASPNET_WP.EXE and CSC.EXE Running After Clicking Redirect Link

0

精彩评论

暂无评论...
验证码 换一张
取 消