473,606 Members | 3,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

<configuratio n>
<!--error-->
<appSettings file="AppSettin gs.config" />
<!--error-->
<appSettings configSource="A ppSettings.conf ig"/>
</configuration>

Any idea how to resolve?

Jul 13 '08 #1
3 4656

"Junior" <so******@somew here.comwrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
Vista SP1 IIS7

I'm trying to configure web.config following MSDN docs but keep getting
errors I don't know how to resolve..

<configuratio n>
<!--error-->
<appSettings file="AppSettin gs.config" />
<!--error-->
<appSettings configSource="A ppSettings.conf ig"/>
</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.c omwrote in message
news:ug******** ******@TK2MSFTN GP06.phx.gbl...
>
"Junior" <so******@somew here.comwrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
>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="AppSettin gs.config" />
<!--error-->
<appSettings configSource="A ppSettings.conf ig"/>
</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="applicatio nName" value="MyApplic ation" />
</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 = ConfigurationSe ttings.AppSetti ngs("applicatio nName");
Page.Title = applicationName .ToString();

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

string appName;
appName = ConfigurationSe ttings.AppSetti ngs.Get("MyAppl icationName");
"Junior" <so******@somew here.comwrote in message
news:OS******** ******@TK2MSFTN GP04.phx.gbl...
>
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:ug******** ******@TK2MSFTN GP06.phx.gbl...
>>
"Junior" <so******@somew here.comwrote in message
news:%2******* ***********@TK2 MSFTNGP02.phx.g bl...
>>Vista SP1 IIS7

I'm trying to configure web.config following MSDN docs but keep getting
errors I don't know how to resolve..

<configuratio n>
<!--error-->
<appSetting s file="AppSettin gs.config" />
<!--error-->
<appSetting s configSource="A ppSettings.conf ig"/>
</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="applicatio nName" value="MyApplic ation" />
</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 = ConfigurationSe ttings.AppSetti ngs("applicatio nName");
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
5373
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 headers with no problem (e.g. header( 'HTTP/1.1 200 OK' ). If I do the same on the new server I get redirected to the server's 'Internal Error' page (i.e. error 500). No indication of what the error is.
1
5100
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 for the Sho Friendly http error messages, but it doesn't give me another othe error beside "HTTP 500-Internal Server Error". Does anyone know what i happening here? I use Window XP with IIS 5.1 -
3
5258
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 (0xc0000005 at address 535F072A): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around this problem, try simplifying or changing the program near the locations listed below. Locations at the top of the list are...
1
1232
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 any case, the code below causes the following error: main.cpp(22): fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\3077\vc\Compiler\Utc\src\P2\p2symtab.c', line 4533)
8
9998
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 the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/WebApplication1'. 'HTTP/1.1 500 Internal Server Error'."
5
1640
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 to run projectL Unable to start debugging on the web
2
9589
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 handler. This all worked fine prior to installing the 2.0 framework but, now I get the following error... Section or group name 'appSettings' is already defined. Updates to this may
5
12285
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. On Beta1, I am able to execute a particular page with no problem, that page opens up in the comes up just fine. On Win2kdev1, when I go to execute the same page, it opens a file download dialog and asks me whether I want to open or save the...
0
5883
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. Basically what im trying to do is the following: - a client connect to a server using sslsocket. - server receive the connection and reply with the first part of the data and keep the connection open. - then client receive the reply and request for...
0
8036
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8461
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8126
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6796
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3948
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4010
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2454
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1572
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1313
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.