c# - Azure WorkerRole Stopping Immediately After Starting -


i have azure workerrole stopping (no exceptions being thrown) no apparent reason. stops in same spot every time, code executing process takes 20 seconds run. can postulate why happening? there timeout on onstart() method i'm not aware of?

here's breakdown of happening in worker role:

onstart() -> diagnostics configured

run() ->

  1. a timer set (60) trigger meat of application
  2. a new thread started load default settings (takes ~30 seconds)

the code never gets meat of #1.

for #1 above, i've tried , without timer (no difference). #2 above, i've tried , without starting new thread (no difference).

here's debug output worker role:

waworkerhost.exe information: 0 : deployment(108).apiazure.workers.0 - workers.onstart() microsoft.windowsazure.serviceruntime information: 202 : role entrypoint . completed onstart() thread 'role initialization thread' (0x29fc) has exited code 0 (0x0). microsoft.windowsazure.serviceruntime information: 203 : role entrypoint . calling   run() 'waworkerhost.exe' (managed (v4.0.30319)): loaded 'c:\users\jason a. kiesel\projects\fs_citysourced\workersazure\bin\stage\workersazure.csx\roles\workers\approot\freedomspeaks.logging.dll', symbols loaded. microsoft.windowsazure.serviceruntime warning: 204 : role entrypoint . completed run() ==> role recycling initiated microsoft.windowsazure.serviceruntime information: 503 : role instance recycling starting thread 'role start thread' (0x1fa0) has exited code 0 (0x0). thread '<no name>' (0x1624) has exited code 0 (0x0). 'waworkerhost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_64\system.data\v4.0_4.0.0.0__b77a5c561934e089\system.data.dll' 'waworkerhost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_64\system.transactions\v4.0_4.0.0.0__b77a5c561934e089\system.transactions.dll' 'waworkerhost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_64\system.enterpriseservices\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.enterpriseservices.dll' 'waworkerhost.exe' (managed (v4.0.30319)): loaded 'c:\windows\microsoft.net\assembly\gac_msil\system.numerics\v4.0_4.0.0.0__b77a5c561934e089\system.numerics.dll', skipped loading symbols. module optimized , debugger option 'just code' enabled. microsoft.windowsazure.serviceruntime information: 205 : role entrypoint . calling   onstop() waworkerhost.exe information: 0 : deployment(108).apiazure.workers.0 - workers.onstop() microsoft.windowsazure.serviceruntime information: 206 : role entrypoint . completed onstop() thread 'role stop thread' (0x2dac) has exited code 0 (0x0). program '[12228] waworkerhost.exe: managed (v4.0.30319)' has exited code -66053 (0xfffefdfb). 

loop in run() not required @ least in emulator version 1.6 or higher. got same issue today. spent few hours find out reason , found project uses references microsoft.windows.azure assemblies version 1.7 , emulator use october version (1.8). web projects work fine process worker roles starting , stopping describe. onstart, run , onstop not called. when referenced worker role 1.8 assemblies started work again. few hours wasted, microsoft...


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? -