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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -