Showing posts with label globalization. Show all posts
Showing posts with label globalization. Show all posts

Thursday, March 22, 2012

Object reference not set to an instance of an object using globalization

Hi
in my page load
i use
ConfigurationSettings.AppSettings["PgDesc"].ToString();
to retreive to info to output to the file
the thing is for some values i get an error : object reference not set
...
when i use ConfigurationSettings.AppSettings["rootPath"].ToString()
it works fine
does anyone know what is going on
thanksMake sure there is an entry named PgDesc in the <appSettings> section of the
config file.
"fredd00" <frederic.nourry@.gmail.com> wrote in message
news:1125716637.078874.56870@.o13g2000cwo.googlegroups.com...
Hi
in my page load
i use
ConfigurationSettings.AppSettings["PgDesc"].ToString();
to retreive to info to output to the file
the thing is for some values i get an error : object reference not set
...
when i use ConfigurationSettings.AppSettings["rootPath"].ToString()
it works fine
does anyone know what is going on
thanks
man am i stupid
i was looking using globalisation so i need to use the resource manager
,
my fault that's what you get for using cut and paste
thanks

Object reference not set to an instance of an object using globalization

Hi

in my page load

i use

ConfigurationSettings.AppSettings["PgDesc"].ToString();

to retreive to info to output to the file

the thing is for some values i get an error : object reference not set
....

when i use ConfigurationSettings.AppSettings["rootPath"].ToString()

it works fine

does anyone know what is going on

thanksMake sure there is an entry named PgDesc in the <appSettings> section of the
config file.

"fredd00" <frederic.nourry@.gmail.com> wrote in message
news:1125716637.078874.56870@.o13g2000cwo.googlegro ups.com...
Hi

in my page load

i use

ConfigurationSettings.AppSettings["PgDesc"].ToString();

to retreive to info to output to the file

the thing is for some values i get an error : object reference not set
....

when i use ConfigurationSettings.AppSettings["rootPath"].ToString()

it works fine

does anyone know what is going on

thanks
man am i stupid
i was looking using globalisation so i need to use the resource manager
,

my fault that's what you get for using cut and paste

thanks