1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

Using Entity in App.Config

Discussion in 'Microsoft News' started by NewsBot, Apr 9, 2008.

  1. NewsBot

    NewsBot I Got News

    Joined:
    Feb 8, 2006
    Messages:
    1,813
    Operating System:
    Windows Vista Home Premium
    I'm trying to use an XML entity in the App.config for a configuration value that appears in multiple appSettings.

    I see the entity shows correctly in the VS 2008 xml editor, but when ConfigurationManager.AppSettings["SQLConnectionString"] returns, I see the literal text and not the resolved text "server=server\&SQLInstanceName;;database=Search;Integrated Security=SSPI;Max Pool Size=75; Min Pool Size=5".

    Is this a bug in VS 2008 ConfigurationManager? Or is there a trick to make this work?


    ]>

    *

    ***
    ***
    *





     

Share This Page