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

F

fredd00

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
 
S

Siva M

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

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
 
F

fredd00

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top