Home All Groups Group Topic Archive Search About

Adding reference System.Configuration to a web project: not possible! Why?

Author
25 Apr 2006 8:43 AM
Roland_Müller
Hi,

the warning in VS2005 says:
System.Configuration.ConfigurationSettings.AppSettings is obsolete, use
System.Configuration.ConfigurationManager.AppSettings instead.

Ok, i wanted the change this, knowing the ConfigurationManager is
located in the assembly System.Configuration.dll.

I go to project references (why does this dialog look other then in
windows forms projects??? strange!!!) and want to add the assembly
System.Configuration.dll! I click on "Add reference..." then i choose
the assembly in the list being on the tab ".NET". So i select the
Component Name "System.Configuration" and click "OK".

Nothing happens! Nothing! No error message, nothing.
I cannot use the class System.Configuration.ConfigurationManager because
i cannot add the needed reference to my web project.

So what goes wrong??? Is this a bug? The project uses framework 2 and it
is visual studio Team Suite!
I tried creating a new web project using the VS-wizzard but same problem.

Please help, microsoft, this is strange.


Thanks in advance, Roland

Author
25 Apr 2006 2:32 PM
Brad Roberts
Is it possible you are attempting to reference the v1.1 version of
System.Configuration? Check the version info on the reference you are adding.
--
Brad

"Software is like melted pudding..."


Show quote
"Roland Müller" wrote:

> Hi,
>
> the warning in VS2005 says:
> System.Configuration.ConfigurationSettings.AppSettings is obsolete, use
> System.Configuration.ConfigurationManager.AppSettings instead.
>
> Ok, i wanted the change this, knowing the ConfigurationManager is
> located in the assembly System.Configuration.dll.
>
> I go to project references (why does this dialog look other then in
> windows forms projects??? strange!!!) and want to add the assembly
> System.Configuration.dll! I click on "Add reference..." then i choose
> the assembly in the list being on the tab ".NET". So i select the
> Component Name "System.Configuration" and click "OK".
>
> Nothing happens! Nothing! No error message, nothing.
> I cannot use the class System.Configuration.ConfigurationManager because
> i cannot add the needed reference to my web project.
>
> So what goes wrong??? Is this a bug? The project uses framework 2 and it
> is visual studio Team Suite!
> I tried creating a new web project using the VS-wizzard but same problem.
>
> Please help, microsoft, this is strange.
>
>
> Thanks in advance, Roland
>
Author
26 Apr 2006 12:56 PM
Roland Müller
Hi Brad,

no it is for sure the version 2 of the assembly!
Version: 2.0.0.0
Runtime: v2.0.50727

Brad Roberts schrieb:
Show quote
> Is it possible you are attempting to reference the v1.1 version of
> System.Configuration? Check the version info on the reference you are adding.

AddThis Social Bookmark Button