2

I'm working on azure WorkerRole project in VS2015, SDK 2.9. The role works good in cloud, but when i'm trying to run it locally with FullEmulator, role can't be started:

[fabric] Role Instance: deployment29(116).MyComp.Engine.Deploy.MyProject.Engine.Azure.0

[fabric] Role state Unknown

[fabric] Role state Busy

[fabric] Role state Unknown

[fabric] Role state Busy

[fabric] Role state Unknown

[fabric] Role state Busy

[fabric] Role state Destroyed

[fabric] Role state Busy

enter image description here

looks like role is restarting endlesly, the interesting thing is, that break point at the begining of the OnStart() doesn't hit

How to detect the reason of such behaviour?

Maxim Kitsenko
  • 2,042
  • 1
  • 20
  • 43

2 Answers2

1

I found only one way to detect the reason - to look into event logs. There were a lot of errors from emulator. I suugest to check these categories:

  • Windows Logs\Application event log
  • Applications and Services Logs\Windows Azure event log
  • Windows Logs\System event log

    I have found the reason - the role was misconfigured.

    this article can be useful

Maxim Kitsenko
  • 2,042
  • 1
  • 20
  • 43
  • Which category you found the entries under? I have none in Applications and Services Logs/Windows Azure. – Piedone Jan 29 '17 at 20:19
  • @Piedone sorry, i don't remember . Look to errors (my guess windows logs-> applications contains such errors), may be you will find errors from azure emulator. – Maxim Kitsenko Jan 29 '17 at 20:34
  • Thanks, unfortunately nothing there iether. – Piedone Jan 29 '17 at 20:36
  • @Piedone looks strange, log records should be there, i added some categories into my answer. But in general you can create you filter (pull all events into one category and filter them) – Maxim Kitsenko Jan 29 '17 at 20:40
  • I mean nothing from the Emulator is there, I see plenty of entries from other applications. – Piedone Jan 29 '17 at 20:42
0

Looking through my event logs I noticed the following error,

Retrieving the COM class factory for component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} failed due to the following error: 80040154 Class not registered

After googling for that I found this stackoverflow answer that told me I had to install IIS. I had recently gotten a new computer and this doesn't seem to be part of the basic Windows install. After installing IIS it started right up.

Morgan Kenyon
  • 3,072
  • 1
  • 26
  • 38