From b44cffa440b9f2d8bb1c21ad3210bb31f3f3472d Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Mon, 15 Oct 2012 11:37:19 -0700 Subject: [PATCH] #19140: Fixing Azure startup task on local emulator Work Item: 19140 --HG-- branch : 1.x --- .../ServiceDefinition.csdef | 15 ++++++++++++++- .../Orchard.Azure.Web/startup/ConfigureIIS.cmd | 6 +++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef b/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef index 567bfe4f7..902e5be53 100644 --- a/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef +++ b/src/Orchard.Azure/Orchard.Azure.CloudService/ServiceDefinition.csdef @@ -18,7 +18,20 @@ - + + + + + + + + + + + \ No newline at end of file diff --git a/src/Orchard.Azure/Orchard.Azure.Web/startup/ConfigureIIS.cmd b/src/Orchard.Azure/Orchard.Azure.Web/startup/ConfigureIIS.cmd index 85c2c6cec..9bb55e560 100644 --- a/src/Orchard.Azure/Orchard.Azure.Web/startup/ConfigureIIS.cmd +++ b/src/Orchard.Azure/Orchard.Azure.Web/startup/ConfigureIIS.cmd @@ -1 +1,5 @@ -%windir%\system32\inetsrv\appcmd set config -section:applicationPools -applicationPoolDefaults.processModel.idleTimeout:00:00:00 +REM Check if this task is running on the compute emulator, if not then sets the Idle Timeout to zero + +IF "%ComputeEmulatorRunning%" == "true" ( + %windir%\system32\inetsrv\appcmd set config -section:applicationPools -applicationPoolDefaults.processModel.idleTimeout:00:00:00 +) \ No newline at end of file