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



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

"fredd00" <frederic.nourry@xxxxxxxxx> wrote in message
news:1125716637.078874.56870@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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


.



Relevant Pages

  • Re: datagrid display when loading config file
    ... I also found a simpler approach to just load the timer interval from the ... config file into a textbox for editing. ... just to the one table of the DataSet and it will display expanded. ... When I click on appsettings, it reverts back to '+' On clicking that, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Pluggable Modules
    ... >properties file with plugins specified? ... obscure file somewhere he has to load into a text editor to edit ... themselves and update the config file. ...
    (comp.lang.java.programmer)
  • YAML config files with environment specific settings
    ... cod I'm able to load the file within my initializer and ... Since this setting is a server location that varies by environment, ... tried to use the by-environment structure and changed my config file to ... error: Uncaught exception: syntax error on line 1, ...
    (comp.lang.ruby)
  • XmlReader Question
    ... parses the config file many times and I do not want to load the config file ... The problem is I am using XMLReader because of speed and after I ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Urlscan with multiple .ini files?
    ... Just to confirm, you can load multiple instances of UrlScan, but they will ... instances will refer to the config file of the first loaded instance. ... > - config'd each ini so the logging is to separate locations ...
    (microsoft.public.inetserver.iis.security)