Link to home
Start Free TrialLog in
Avatar of PradeepYadhav
PradeepYadhav

asked on

string reference not set to an instance of a string


CultureInfo DefaultCulture = new CultureInfo("en-gb");
DefaultCulture = new CultureInfo(System.Configuration.ConfigurationManager.AppSettings["en-gb"]);

String reference not set to an instance of a string
Parameter name :name
Avatar of AGBrown
AGBrown
Flag of United Kingdom of Great Britain and Northern Ireland image

What is the content of your .config file? In particular what is the full contents of the line
<add key ="en-gb" .....>
Avatar of PradeepYadhav
PradeepYadhav

ASKER

<add key="TestCulture" value="en-gb"/>
It is

<add key="DefaultCulture" value="en-gb"/>
ASKER CERTIFIED SOLUTION
Avatar of AGBrown
AGBrown
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of vo1d
vo1d
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial