473,320 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

appSettings causes HTTP Error 500.19 - Internal Server Error

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?

Jul 13 '08 #1
3 4640

"Junior" <so******@somewhere.comwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
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.

Jul 13 '08 #2

"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:ug**************@TK2MSFTNGP06.phx.gbl...
>
"Junior" <so******@somewhere.comwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
>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();

Jul 13 '08 #3
Need to use a Get method...

string appName;
appName = ConfigurationSettings.AppSettings.Get("MyApplicati onName");
"Junior" <so******@somewhere.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
>
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:ug**************@TK2MSFTNGP06.phx.gbl...
>>
"Junior" <so******@somewhere.comwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl. ..
>>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();
Jul 14 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Peter Gaunt | last post by:
I'm in the process of moving my site from one server to another (my old hosting company appears to have gone bust). On the old host and on my local Mac OS X machine I can send HTTP/1.1 response...
1
by: errorQuest | last post by:
Hi There, I have a problem with the IIS running. Whenever I try to ru http://localhost/aaa.asp i got this error "HTTP 500-Internal Serve Error". I use very simple code in aaa.asp. I try to look...
3
by: Mark Rockman | last post by:
------ Build started: Project: USDAver2, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error...
1
by: reom | last post by:
Hi, I'm not sure this is the right place to report bugs in MS Visual C++ .NET 2003. I posted the same message on MSDN forums (http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=95745). In...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
5
by: Eric Sabine | last post by:
the second I add <appSettings> </appSettings> to my web.config file (just after the <system.web>), my web application will no longer run. I get an error that reads: Error while tyring...
2
by: Fuehner | last post by:
Everyone-- I installed the .NET 2.0 framework on a server that also has version 1.1 installed. A few of my applications override the "appSettings" section in the web.config with a custom config...
5
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. ...
0
by: kuguy | last post by:
Hi all, I'm new to the forums, so I hope this isn't in the wrong place... I have that "Software caused connection abort: socket write error" exception error that i've never meet before. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.