473,326 Members | 2,124 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,326 software developers and data experts.

web.config appSettings Store value with & character

Max
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
one know the solution pls let me know. code of web.config and error
given by visual studio is given below.

<configuration>
<appSettings>
<add key="ConnectionStri

ng" value="server=localhost;user id=mas;password=mas&2003;database=CMS"
/>
</appSettings>
....
....
and so on </configuration>

Error Give by VS 2003
Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: Reference to undeclared parameter entity, 'max'.

Source Error:

[No relevant source lines]
Source File: D:\dnSource\HOMEAPPS_mahesh\web.config Line: 0

Aug 8 '06 #1
1 2024
See my reply at microsoft.public.de.german.entwickler.dotnet.asp.

Use "&amp;" instead of "&".

Regards,
Michael
"Max" <ma***********@gmail.comschrieb im Newsbeitrag
news:11*********************@i3g2000cwc.googlegrou ps.com...
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
one know the solution pls let me know. code of web.config and error
given by visual studio is given below.

<configuration>
<appSettings>
<add key="ConnectionStri

ng" value="server=localhost;user id=mas;password=mas&2003;database=CMS"
/>
</appSettings>
...
...
and so on </configuration>

Error Give by VS 2003
Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: Reference to undeclared parameter entity, 'max'.

Source Error:

[No relevant source lines]
Source File: D:\dnSource\HOMEAPPS_mahesh\web.config Line: 0

Aug 8 '06 #2

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

Similar topics

4
by: Guinness Mann | last post by:
I'm working in VS2003.NET, with C#. I use app.config to store the connection string to my SQL Server. This works fine. Lately I've been taking work home where the connection string is...
5
by: WFB | last post by:
Hi, I have an application with a couple of referenced assemblies. The referenced assemblies and my application all share a few configuration settings with the same name but different values. ...
8
by: theWizard1 | last post by:
Using Asp.NET 1.1, and C#. I have a directory for the website, and a directory under it named Secure. I have a web.config in each of the above directories. The web.config in the Secure...
2
by: Ian | last post by:
Hi, I am trying to use machine.config to store database settings for a connection wrapper class I am using as part of the data layer of an n-tier system. Have added the following section to...
2
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...
10
by: Brett Romero | last post by:
I'd like to store something such as the following the my app.config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="DEBUG" value="true"/> <add...
5
by: Keith | last post by:
Hello all, I have a C# Windows Forms app. It is in namespace App.GUI. It builds to Nav.exe. I have entered an application level setting using the designer. Its type is string, name is "FOO"...
6
by: G | last post by:
Hello, Is it possible (and / or wise) to add custom pieces of code inside your Web.Config file? For example I store the connection string in Web.Config and access it via...
3
by: =?Utf-8?B?Sm9u?= | last post by:
Hello, I have tried to use the app.config and settings.cs files to store my data (which I want to be user changeable at runtime). I can write to (what I assume is an object in memory) and it does...
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...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.