Sep 11, 2015 03:56 AM|Jamobor yao - MSFT|LINK
This error message usually show us that you're not running in the dev fabric or Azure fabric, please double check your startup project is the cloud project, you should make sure you're running in the dev fabric or Azure fabric by checking
RoleEnvironment.IsAvailable. If that's true, you're safe to call anything in RoleEnvironment. If it's false, you're not running within the fabric.