c# - Webservice initialisation issue -


i have simple web service. when call test method first time takes 5 seconds respond , thereafter takes less time fine.

but if application stays idel 5 mins , when call same method again takes same amount of time took before respond. how can make faster ?

i tried setting keepalive = true , pre compiling , deploying, still no luck

localhost.webservice1 svc = new websvctest.localhost.webservice1();          private void button1_click(object sender, eventargs e) {              stopwatch stopwatch = new stopwatch();             stopwatch.start();              string returnval = svc.helloworld();              stopwatch.stop();              timespan ts = stopwatch.elapsed;              // format , display timespan value.             string elapsedtime = string.format("{0:00}:{1:00}:{2:00}.{3:00}",                 ts.hours, ts.minutes, ts.seconds,                 ts.milliseconds / 10);              messagebox.show(elapsedtime);         } 

problem iis processmodel idletimeout set 20 mins. set 0, works fine. lot


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -