c# - Optimizing IIS7 for .NET development and debugging -


it seems spend half of time in .net twiddling thumbs waiting iis spin instead of developing.

it's pretty simple: whenever make chance code-behind file, , refresh, takes anywhere 15 seconds on minute iis recycle.

is there way improve this? it's maddening.

i'm working in web site projects (not web application projects), running windows 7 , working in .net 4 framework. machine few months old, ssd, don't think hardware should bottleneck.

also, i'm not debugging application of time, though runs slower.

edit

no matter type of iis use, 1 of best ways speed things create ram drive , point temp , especially asp.net temporary files folders it. asp.net temporary files contains compiled binaries pages. asp.net checks folder when starts , recompiles pages have changes. putting folder on ram drive increase startup time orders of magnitude. technique described in multiple articles, eg. in "slash asp.net compile/load time without hard work"

as added bonus, you'll reduce wear , tear on ssd .

original

for web applications

it sounds have set project use visual studio development server or iis express instead of iis service local machine. when happens, there significant delay dev server starts zero.

this default setting new web projects. development server useful because starts project root virtual directory on random available port. disadvantage takes annoyingly long time start.

you can speed things changing project use local iis , start under specific virtual directory. in case server running , thing needed application pool recycle. app pool recycling fast , won't notice delay unless have lot of code embedded in aspx pages, requires recompilation on each recycle.

to change type of server used debugging, go web application's properties > web , in servers section, change selection development server local iis. have create virtual directory application, can done typing required url in project url textbox , pressing "create virtual directory" button.

for web site projects

the impact of iis express/visual studio dev server vs local iis instance holds web site projects well. file-based web sites use dev server default. process of changing local iis service different. thankfully, described in detail @ how to: specify web server web projects in visual studio


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -