468,133 Members | 1,283 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,133 developers. It's quick & easy.

The current configuration system does not support user-scoped settings


I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".

I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!

I can't seem to find a handle on what to do about this! Can somebody
help me!

Thanks so very much!

Steve

Apr 11 '07 #1
6 7197
Just set a reference to the System.Configuration assembly and
ConfigurationManager will magically appear.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Steve Kershaw" wrote:
>
I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".

I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!

I can't seem to find a handle on what to do about this! Can somebody
help me!

Thanks so very much!

Steve

Apr 11 '07 #2
On Apr 11, 2:04 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
Just set a reference to the System.Configuration assembly and
ConfigurationManager will magically appear.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net

"Steve Kershaw" wrote:
I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".
I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!
I can't seem to find a handle on what to do about this! Can somebody
help me!
Thanks so very much!
Steve- Hide quoted text -

- Show quoted text -
Thanks so much for your help!

OK,
So I now have the Configuration Manager, what do I do?
I see "Project", "Configuration" (Debug), "Platform" (.NET) and
"Build" columns but no AppSettings seems to be available. Help!!!
Apr 11 '07 #3
The solution was posted by Peter Bromberg a few days ago :

http://groups.google.com/group/micro...338d6f8be72265


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Steve Kershaw" <st***********@yahoo.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
>
I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".

I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!

I can't seem to find a handle on what to do about this! Can somebody
help me!

Thanks so very much!

Steve

Apr 11 '07 #4
On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
The solution was posted by Peter Bromberg a few days ago :

http://groups.google.com/group/micro...framework.aspn...

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
==================================="Steve Kershaw" <steve_kers...@yahoo.comwrote in message

news:11**********************@q75g2000hsh.googlegr oups.com...


I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".
I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!
I can't seem to find a handle on what to do about this! Can somebody
help me!
Thanks so very much!
Steve- Hide quoted text -

- Show quoted text -
Thanks for your help.

But where is this posting? I searched clear back to the beginning of
March for Peter Bromberg's posting on this but I just can't see it.
Can you give me a link?

Thanks again.
Steve

Apr 11 '07 #5
re:
!>The solution was posted by Peter Bromberg a few days ago :

!But where is this posting? I searched clear back to the beginning of
!March for Peter Bromberg's posting on this but I just can't see it.
!Can you give me a link?

Oops, I meant "a few minutes ago".

I've warned my fingers not to post on their own any more.

<chuckle>


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Steve Kershaw" <st***********@yahoo.comwrote in message
news:11*********************@n76g2000hsh.googlegro ups.com...
On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
The solution was posted by Peter Bromberg a few days ago :

http://groups.google.com/group/micro...framework.aspn...

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
==================================="Steve Kershaw" <steve_kers...@yahoo.comwrote in message

news:11**********************@q75g2000hsh.googlegr oups.com...


I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".
I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!
I can't seem to find a handle on what to do about this! Can somebody
help me!
Thanks so very much!
Steve- Hide quoted text -

- Show quoted text -
Thanks for your help.

But where is this posting? I searched clear back to the beginning of
March for Peter Bromberg's posting on this but I just can't see it.
Can you give me a link?

Thanks again.
Steve
Apr 11 '07 #6
Steve,

ConfigurationManager.AppSettings represents the NameValue collection of the
entries you have in your <appSettingsweb.config (or xx.exe.config)
configuration file. You can access individual elements with:
ConfigurationManager.AppSettings["connectionString"]

to get the string value.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Steve Kershaw" wrote:
On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
The solution was posted by Peter Bromberg a few days ago :

http://groups.google.com/group/micro...framework.aspn...

Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en español :http://asp.net.do/foros/
==================================="Steve Kershaw" <steve_kers...@yahoo.comwrote in message

news:11**********************@q75g2000hsh.googlegr oups.com...


I have a problem in which I'm trying to access a method in a .DLL from
an ASP.Net web page (written in C#). I keep on getting the error "The
current configuration system does not support user-scoped settings".
I've done some research into this problem and I've found out that the
solution has something to do with the ConfigurationManager.AppSettings
for settings, or Profiles for per-user configutation in ASP.Net 2.0.
However, I don't know where to find the ConfigurationManager! I've
looked in Website/ASP.Net configuration and Tools/Options +
Environment and I can't find it!
I can't seem to find a handle on what to do about this! Can somebody
help me!
Thanks so very much!
Steve- Hide quoted text -
- Show quoted text -

Thanks for your help.

But where is this posting? I searched clear back to the beginning of
March for Peter Bromberg's posting on this but I just can't see it.
Can you give me a link?

Thanks again.
Steve

Apr 11 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Thom Little | last post: by
2 posts views Thread by Terry Holland | last post: by
7 posts views Thread by Steven Cliff | last post: by
3 posts views Thread by Lattis | last post: by
7 posts views Thread by =?Utf-8?B?RG91Z2llIEJyb3du?= | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.