Exforsys

Online Training

web.config gives error if i store string that contin "&" character in appSettings

This is a discussion on web.config gives error if i store string that contin "&" character in appSettings within the Microsoft .NET forums, part of the Programming Talk category; hi i have stored my connction string in web.config as we do usually. code of web.confing is given ...


Go Back   Exforsys > Programming Talk > Microsoft .NET

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-08-2006, 05:48 AM
Junior Member
 
Join Date: Jul 2006
Posts: 4
mahehs_k_anjani is on a distinguished road
web.config gives error if i store string that contin "&" character in appSettings

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.





...
...
and so on


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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-05-2006, 04:12 PM
Junior Member
 
Join Date: Sep 2006
Posts: 1
Ayesteran is on a distinguished road
Use "&" instead of "&".



Michel Ayesteran
MCSD - MCT
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-06-2006, 06:21 AM
Junior Member
 
Join Date: Jul 2006
Posts: 4
mahehs_k_anjani is on a distinguished road
thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.