473,608 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

appSettings key in web.config causes error

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
server. Server side-error occurred on sending debug HTTP request...

any ideas?

Using the 2003 IDE on WXP Pro XP1.

Eric
Nov 18 '05 #1
5 1640
Hi Eric,

You'll want to put it *before* <system.web>

<configuratio n>
<appSettings>
<add key="Applicatio n Name" value="MyApplic ation" />
</appSettings>

<system.web>
.......
</configuration>

Ken

"Eric Sabine" <mopar41@hyotyt _mail_noundersc ores.com> wrote in message
news:O3******** ******@TK2MSFTN GP09.phx.gbl...
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
server. Server side-error occurred on sending debug HTTP request...

any ideas?

Using the 2003 IDE on WXP Pro XP1.

Eric


Nov 18 '05 #2
<appSettings> goes outside of <system.web>, but inside <configuration> . Once
you move it here, you are golden.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ***
Think Outside the Box!
*************** *************** *************** ***
"Eric Sabine" <mopar41@hyotyt _mail_noundersc ores.com> wrote in message
news:O3******** ******@TK2MSFTN GP09.phx.gbl...
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
server. Server side-error occurred on sending debug HTTP request...

any ideas?

Using the 2003 IDE on WXP Pro XP1.

Eric

Nov 18 '05 #3
The frigging answer was in my post. Aaah, the value of another pair of
eyes.

thanks!
Ken Cox [Microsoft MVP] wrote:
Hi Eric,

You'll want to put it *before* <system.web>

<configuratio n>
<appSettings>
<add key="Applicatio n Name" value="MyApplic ation" />
</appSettings>

<system.web>
......
</configuration>

Ken

"Eric Sabine" <mopar41@hyotyt _mail_noundersc ores.com> wrote in message
news:O3******** ******@TK2MSFTN GP09.phx.gbl...
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 server. Server side-error occurred on sending debug HTTP
request...

any ideas?

Using the 2003 IDE on WXP Pro XP1.

Eric

Nov 18 '05 #4
Been there, done that! <grin>

"Eric Sabine" <mopar41@hyotyt _mail_noundersc ores.com> wrote in message
news:ek******** *******@TK2MSFT NGP12.phx.gbl.. .
The frigging answer was in my post. Aaah, the value of another pair of
eyes.

thanks!


Nov 18 '05 #5
Hi Eric,

Do you have the <appSettings> element within a <configuratio n> element?

<configuratio n>
<appSettings>
<add key="KeyName" value="SomeValu e" />
</appSettings>
</configuration>

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
ja******@online .microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
From: "Eric Sabine" <mopar41@hyotyt _mail_noundersc ores.com>
Subject: appSettings key in web.config causes error
Date: Wed, 28 Jul 2004 10:28:18 -0400
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <O3************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: vpn.ssimail.net 168.215.207.82
Path: cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP0 9
.phx.gblXref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2513 43
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

the second I add

<appSettings >

</appSettings>

to my web.config file (just after the <system.web>) , my web application willno longer run. I get an error that reads:

Error while tyring to run projectL Unable to start debugging on the web
server. Server side-error occurred on sending debug HTTP request...

any ideas?

Using the 2003 IDE on WXP Pro XP1.

Eric


Nov 18 '05 #6

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

Similar topics

2
15479
by: hazz | last post by:
I have spent more time than I care to admit trying to track down a very subtle error. Here is my app's xx.exe.config file. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appsettings> <add key="PasswordProvider" value="fudge" /> </appsettings>
2
3368
by: Alpha | last post by:
I'm getting the following error message when I run my C# Window Application from other PC (not my development machine). Can someone tell me how to correct this appSettings Configuration problem? Thanks, Alpha See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.InvalidOperationException: The key 'fbdLogFolderPath.SelectedPath'
2
1662
by: Kenneth | last post by:
Hi, In web.config I have an appsettings: <appSettings> <add key="constring" value="Server=localhost;UID=sa;PWD=secret;Database=myDB" /> </appSettings> This is for my developing machine.
3
1491
by: Rudy | last post by:
Hello All! I'm just trying to set my SQL connection String in the app setting of my Web Config. I got it to work on one page, but my code is a little diffrent for another page that has a little more code and stuff goin on. This is my current connection string.. Protected Const SQL_CONNECTION_STRING As String = _ "Data Source=192.168.100.120,xxxx;Network Library=dbmssocn;Initial Catalog=mycatalog;User ID=****;Password=*****;"
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
2
8171
by: mahesh.anjani | last post by:
hi i have stored my connction string in web.config as we do usually. code of web.confing is given below. check the password field contain "&" character. now when i run my application it gives error because value of ConnectionString is breaked at "&". So how to store value in web.config that contain "&" character, if any
7
11102
by: moondaddy | last post by:
I'm running a wpf windows app and want to add the appSettings element to the config file. when I do, the app wont start up and I get the following error: {"The type initializer for 'System.Windows.Application' threw an exception."} {"The type initializer for 'System.Windows.Navigation.BaseUriHelper' threw an exception."} " at System.Windows.Application..ctor()\r\n at DiagramTool_v1.App..ctor()\r\n at DiagramTool_v1.App.Main() in
1
2184
by: Sergei Shelukhin | last post by:
Hi. Is is possible to divide appSetting in two, having some values stored in web.config itself and some in a section referenced in appSettings file="...." attribute?
3
4657
by: Junior | last post by:
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"/>
0
8063
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
8003
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8478
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8152
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,...
1
6014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5476
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3962
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
4025
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1331
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.