Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - appSettings causes HTTP Error 500.19 - Internal Server Error

Reply
 
Old 07-13-2008   #1 (permalink)
Junior


 
 

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
Quote:

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

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

>>> 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
Old 07-13-2008   #2 (permalink)
Mr. Arnold


 
 

Re: appSettings causes HTTP Error 500.19 - Internal Server Error


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

> 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
Old 07-13-2008   #3 (permalink)
Junior


 
 

Re: appSettings causes HTTP Error 500.19 - Internal Server Error


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

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

>> 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
Old 07-13-2008   #4 (permalink)
Junior


 
 

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
Quote:

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

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

>>> 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
Reply

Thread Tools


Similar Threads
Thread Forum
HTTP Error 500.19 - Internal Server Error Vista account administration
internal error Vista performance & maintenance
500-Internal server error .NET General
internal error Vista account administration
HTTP 500.19 -Internal Server Error Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46