Exforsys
+ Reply to Thread
Results 1 to 3 of 3

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

  1. #1
    mahehs_k_anjani is offline Junior Member Array
    Join Date
    Jul 2006
    Answers
    3

    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


  2. #2
    Ayesteran is offline Junior Member Array
    Join Date
    Sep 2006
    Answers
    1
    Use "&" instead of "&".



    Michel Ayesteran
    MCSD - MCT


  3. #3
    mahehs_k_anjani is offline Junior Member Array
    Join Date
    Jul 2006
    Answers
    3
    thanks


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...