The type or namespace name 'ConfigurationManager' does not exist in the namespace 'System.Configurat
  • hi all i am trying to app.config connection string but i am facing this error 
    The type or namespace name 'ConfigurationManager' does not exist in the namespace 'System.Configuration' (are you missing an assembly reference?)

    my code is this

    string conStr = System.Configuration.ConfigurationManager.ConnectionStrings["dbAccountsConnectionString"].ConnectionString;
  • 1 Comment sorted by
  • Vote Up0Vote Down farazfaraz
    10.00 Karma Accepted Answer
    simply add reference again go to project -- Right click and select --> Add Reference --> select .NET tab --> select System.Configuration -->Press Ok.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Tagged

Popular Posts of the Week

Top Posters Weekly

Optimum Creative