"NullReferenceException was unhandled by user code" is the error i get when the first line in the method gets executed in the RegisterFull.aspx page while trying to add new user.
private void BindCountry()
{ //Country filter limits contry list
/**Error Line****/ string CountriesFilter = portalSettings.CustomSettings["SITESETTINGS_COUNTRY_FILTER"].ToString();
CountryField.Items.Clear();
if (CountriesFilter.Length != 0)
{
CountryField.DataSource = CountryInfo.GetCountries(CountriesFilter);
}
else
{
CountryField.DataSource = CountryInfo.GetCountries(CountryTypes.InhabitedCountries,CountryFields.DisplayName);
}
CountryField.DataBind();
}
With Regards
Anthony (rajatbics@gmail.com)