Will Azure find my RoleEntryPoint implementation class if that's the direct class it derives from?
Asked Answered
B

1

1

Let's say I have:

public abstract ServiceBase : RoleEntryPoint {
  ...
}

public MyRealService : RoleEntryPoint {
  ...
}

Will my Azure WorkerRole project be able to correctly figure out MyRealService class as the WorkerRole entry point?


This used to be working well for me but now that I've updated to Azure Tooling 2.0 it doesn't hit any breakpoint so I'm not even sure what entry point class it is loading.

Biotin answered 8/10, 2013 at 16:16 Comment(0)
B
2

Problem solved. It basically had to do with some references pointing to the old 1.8.0.0 DLL and some to the 2.0.0.0.

So following the example above:

  • ServiceBase: was defined in a different project that was depending on 1.8.0.0.
  • MyRealService: was defined in the top-level project that depends on 2.0.0.0.

So since the base class inheriting from RoleEntryPoint was from an older version of Microsoft.WindowsAzure.ServiceRuntime, MyRealService class was never found despite the actual C# project depending on version 2.0.0.0 of Microsoft.WindowsAzure.ServiceRuntime.

Thanks so much to the answer in this thread: Azure WorkerRole Stopping Immediately After Starting

Biotin answered 8/10, 2013 at 16:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.