none
该配置节不能包含CDATA或文本元素 RRS feed

  • 问题

  • 该配置节不能包含CDATA或文本元素  这个错误是该怎么解决

    configuration>
     <appSettings>
       <add key="source" value="server=.;database=SOS;uid=sa;pwd=;">
       
     </appSettings>
    
    </configuration>
    
    在程序中如下:
    public string GetConfiguration(string key)
        {
          return ConfigurationSettings.AppSettings.Get("source");
        } 
    2010年9月28日 3:46

答案

  • add标签没有关闭

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    2010年9月28日 19:18
    版主