Windows Vista Forums

appSettings causes HTTP Error 500.19 - Internal Server Error

  1. #1


    Junior Guest

    appSettings causes HTTP Error 500.19 - Internal Server Error

    Need to use a Get method...

    string appName;
    appName = ConfigurationSettings.AppSettings.Get("MyApplicationName");




    "Junior" <somebody@xxxxxx> wrote in message
    news:OSJ4ltT5IHA.4908@xxxxxx

    >
    > "Mr. Arnold" <MR. Arnold@xxxxxx> wrote in message
    > news:ugT9BbT5IHA.2348@xxxxxx

    >>
    >> "Junior" <somebody@xxxxxx> wrote in message
    >> news:%2340%23bHT5IHA.4268@xxxxxx

    >>> Vista SP1 IIS7
    >>>
    >>> I'm trying to configure web.config following MSDN docs but keep getting
    >>> errors I don't know how to resolve..
    >>>
    >>> <configuration>
    >>> <!--error-->
    >>> <appSettings file="AppSettings.config" />
    >>> <!--error-->
    >>> <appSettings configSource="AppSettings.config"/>
    >>> </configuration>
    >>>
    >>> Any idea how to resolve?
    >>
    >> The contents of the Web.config is in valid that's what the 500.19 means.
    >> And something that will run on IIS5 and XP may not apply to IIS7 and
    >> Vista.
    >>
    >> I have found that whatever examples you're using, you must find the
    >> equivalent example for IIS7 and Vista.
    >
    > I was also getting the same error when trying the following:
    >
    > <appSettings>
    > <add key="applicationName" value="MyApplication" />
    > </appSettings>
    >
    > So what do I try next? I tried using the Website Administration Tool and
    > added a setting. Running the website does not generate an error anymore
    > which is why this stuff is madness and insanity.
    >
    > But trying to access this property should return results but does not even
    > when loading the website in a new instance of a browser which reloads the
    > edited web.config file to expose its newly added properties.
    >
    > applicationName = ConfigurationSettings.AppSettings("applicationName");
    > Page.Title = applicationName.ToString();

      My System SpecsSystem Spec

  2. #2


    Mr. Arnold Guest

    Re: appSettings causes HTTP Error 500.19 - Internal Server Error


    "Junior" <somebody@xxxxxx> wrote in message
    news:%2340%23bHT5IHA.4268@xxxxxx

    > Vista SP1 IIS7
    >
    > I'm trying to configure web.config following MSDN docs but keep getting
    > errors I don't know how to resolve..
    >
    > <configuration>
    > <!--error-->
    > <appSettings file="AppSettings.config" />
    > <!--error-->
    > <appSettings configSource="AppSettings.config"/>
    > </configuration>
    >
    > Any idea how to resolve?
    The contents of the Web.config is in valid that's what the 500.19 means. And
    something that will run on IIS5 and XP may not apply to IIS7 and Vista.

    I have found that whatever examples you're using, you must find the
    equivalent example for IIS7 and Vista.


      My System SpecsSystem Spec

  3. #3


    Junior Guest

    Re: appSettings causes HTTP Error 500.19 - Internal Server Error


    "Mr. Arnold" <MR. Arnold@xxxxxx> wrote in message
    news:ugT9BbT5IHA.2348@xxxxxx

    >
    > "Junior" <somebody@xxxxxx> wrote in message
    > news:%2340%23bHT5IHA.4268@xxxxxx

    >> Vista SP1 IIS7
    >>
    >> I'm trying to configure web.config following MSDN docs but keep getting
    >> errors I don't know how to resolve..
    >>
    >> <configuration>
    >> <!--error-->
    >> <appSettings file="AppSettings.config" />
    >> <!--error-->
    >> <appSettings configSource="AppSettings.config"/>
    >> </configuration>
    >>
    >> Any idea how to resolve?
    >
    > The contents of the Web.config is in valid that's what the 500.19 means.
    > And something that will run on IIS5 and XP may not apply to IIS7 and
    > Vista.
    >
    > I have found that whatever examples you're using, you must find the
    > equivalent example for IIS7 and Vista.
    I was also getting the same error when trying the following:

    <appSettings>
    <add key="applicationName" value="MyApplication" />
    </appSettings>

    So what do I try next? I tried using the Website Administration Tool and
    added a setting. Running the website does not generate an error anymore
    which is why this stuff is madness and insanity.

    But trying to access this property should return results but does not even
    when loading the website in a new instance of a browser which reloads the
    edited web.config file to expose its newly added properties.

    applicationName = ConfigurationSettings.AppSettings("applicationName");
    Page.Title = applicationName.ToString();


      My System SpecsSystem Spec

  4. #4


    Junior Guest

    Re: appSettings causes HTTP Error 500.19 - Internal Server Error

    Need to use a Get method...

    string appName;
    appName = ConfigurationSettings.AppSettings.Get("MyApplicationName");


    "Junior" <somebody@xxxxxx> wrote in message
    news:OSJ4ltT5IHA.4908@xxxxxx

    >
    > "Mr. Arnold" <MR. Arnold@xxxxxx> wrote in message
    > news:ugT9BbT5IHA.2348@xxxxxx

    >>
    >> "Junior" <somebody@xxxxxx> wrote in message
    >> news:%2340%23bHT5IHA.4268@xxxxxx

    >>> Vista SP1 IIS7
    >>>
    >>> I'm trying to configure web.config following MSDN docs but keep getting
    >>> errors I don't know how to resolve..
    >>>
    >>> <configuration>
    >>> <!--error-->
    >>> <appSettings file="AppSettings.config" />
    >>> <!--error-->
    >>> <appSettings configSource="AppSettings.config"/>
    >>> </configuration>
    >>>
    >>> Any idea how to resolve?
    >>
    >> The contents of the Web.config is in valid that's what the 500.19 means.
    >> And something that will run on IIS5 and XP may not apply to IIS7 and
    >> Vista.
    >>
    >> I have found that whatever examples you're using, you must find the
    >> equivalent example for IIS7 and Vista.
    >
    > I was also getting the same error when trying the following:
    >
    > <appSettings>
    > <add key="applicationName" value="MyApplication" />
    > </appSettings>
    >
    > So what do I try next? I tried using the Website Administration Tool and
    > added a setting. Running the website does not generate an error anymore
    > which is why this stuff is madness and insanity.
    >
    > But trying to access this property should return results but does not even
    > when loading the website in a new instance of a browser which reloads the
    > edited web.config file to expose its newly added properties.
    >
    > applicationName = ConfigurationSettings.AppSettings("applicationName");
    > Page.Title = applicationName.ToString();

      My System SpecsSystem Spec

appSettings causes HTTP Error 500.19 - Internal Server Error

Similar Threads
Thread Thread Starter Forum Replies Last Post
Protocol: SMTP, Server Response: '250 HELP', Port: 25, Secure(SSL): Yes, Server Error: 250, Error Number: 0x800CCC7D valeria migelson Vista mail 2 12 Jan 2010
SBS2k3: Installed official SSL certificate - 500 internal server error Fred B. SBS Server 5 07 Jan 2010
HTTP Error 500.19 - Internal Server Error Bruce Vista account administration 4 04 Nov 2009
500-Internal server error deepak .NET General 1 24 Mar 2008
HTTP 500.19 -Internal Server Error patrick Vista account administration 0 29 Apr 2007