How to avoid "The name 'ConfigurationManager' does not exist in the current context" error?

Posted by 5YrsLaterDBA on Stack Overflow See other posts from Stack Overflow or by 5YrsLaterDBA
Published on 2010-04-30T14:34:08Z Indexed on 2010/04/30 14:37 UTC
Read the original article Hit count: 519

Filed under:
|
|

I am using VS2008. I have a project connect with a database and the connection string is read from App.config via ConfigurationManager. We are using L2E.

Now I added a helper project, AndeDataViewer, to have a simple UI to display data from the database for testing/verification purpose.

I don't want to create another set of Entity Data Model in the helper project. I just added all related files as a link in the new helper project.

When I compile, I got the following error:

Error   15  The name 'ConfigurationManager' does not exist in the current context   C:\workspace\SystemSoftware\SystemSoftware\src\systeminfo\RuntimeInfo.cs    24  40  AndeDataViewer

I think I may need to add another project setting/config related file's link to the helper project from the main project? There is no App.config file in the new helper project. But it looks I cannot add that file's link to the helper project. Any ideas?

© Stack Overflow or respective owner

Related posts about c#

Related posts about entity-framework