Here is my snippet:
var country = BLLocations.Instance.GetCountries();
ddlCountry.DataSource =
ddlCountry.DataTextField = "Country";
ddlCountry.DataValueField = "CountryCode";
ddlCountry.DataBind();
See the second line:
ddlCountry.DataSource =
And it compiled successfully and published to cloud also. Strange!
` which you may find useful.
– gdoron Jan 02 '13 at 12:17