Please can somebody help me in this RRS feed

  • Question

  • I have read some of topics discused before in how to get the connection string from web config i tried to follow all procedure but in DATA ACCESS layer the CONNECTION CLASS i tried to write my code like this

    protected Strng as String=CStr(ConfigurationManager.ConnectionString("Conn").ConnectionString

    But still getting the error saying ConfigurationManager is not declared

    i did all the required imports like Import system.configuration,imports System,Imports system.IO etc

    i real don know how can i get rid of that error can some body help me please

    Monday, October 5, 2009 1:13 PM


  • Add System.Configuration as a reference to your project.
    • Proposed as answer by Tamer Oz Tuesday, October 6, 2009 8:18 AM
    • Marked as answer by Yichun_Feng Monday, October 12, 2009 1:02 AM
    Monday, October 5, 2009 1:26 PM