asp.net - Azure: access RoleEnvironment from a website -
i have cloud service project web role (asp.net) , worker roles.
in default.aspx.cs file tried access worker role:
var role = roleenvironment.roles["myworkerrole"];
but got "role discovery data unavailable" exception.
is there way accsess it?
are trying debug locally or running azure?
if locally, try switch visual studio webserver. if running on vs webserver, try iis express instead.
hth
Comments
Post a Comment