3 posts in this topic

Posted

Hey!

I've been playing with websites in azure, and I want to get some information about the current site from azure, So I am trying to use the "RoleEnvironment" class from Microsoft.WindowsAzure.ServiceRuntime.dll to get the information.

However when I try RoleEnvironment.IsAvailable, I always get False, even though the website is running on azure? Am I missing something basic here?

Cheers!

Share this post


Link to post
Share on other sites

Posted

[url="http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleenvironment.aspx"]http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleenvironment.aspx[/url]
^ read this :)

Share this post


Link to post
Share on other sites

Posted

I've read that, Can't see any where where i would have gone wrong.
The only part which sounds similar is
[quote]Windows Azure 1.3 and later reserves for its own use any environment variables that begin with the letters "RD", for example "RdRoleID". If your application creates environment variables that begin with "RD", in certain circumstances, the [url="http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleenvironment.isavailable.aspx"]IsAvailable[/url] property will return [b]false[/b], and other methods and properties of the[b]RoleEnvironment[/b] class will result in the error message "role discovery data is unavailable." To correct this, use environment variables that do not begin with the letters "RD".[/quote]
but I havnt got any custom environment variables defined which could start with RD

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.