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

Issues changing the value of an element in an array in matlab -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

vb.net - Alternative to the T-SQL AS keyword -