Monday, March 26, 2012

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!

SteveJust 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:

Quote:

Originally Posted by

>
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
>
>


On Apr 11, 2:04 pm, Peter Bromberg [C# MVP]
<pbromb...@dotnet.itags.org.yahoo.yabbadabbadoo.comwrote:

Quote:

Originally Posted by

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:
>

Quote:

Originally Posted by

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".


>

Quote:

Originally Posted by

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!


>

Quote:

Originally Posted by

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


>

Quote:

Originally Posted by

Thanks so very much!


>

Quote:

Originally Posted by

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!!!
The solution was posted by Peter Bromberg a few days ago :

http://groups.google.com/group/micr...d338d6f8be72265
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Steve Kershaw" <steve_kershaw@dotnet.itags.org.yahoo.comwrote in message
news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegr oups.com...

Quote:

Originally Posted by

>
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
>


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 espaol : http://asp.net.do/foros/
===================================
"Steve Kershaw" <steve_kershaw@dotnet.itags.org.yahoo.comwrote in message
news:1176324797.391045.45160@dotnet.itags.org.n76g2000hsh.googlegro ups.com...
On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:

Quote:

Originally Posted by

The solution was posted by Peter Bromberg a few days ago :
>
http://groups.google.com/group/micr...framework.aspn...
>
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en espaol :http://asp.net.do/foros/
==================================="Steve Kershaw" <steve_kers...@dotnet.itags.org.yahoo.comwrote in message
>
news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegr oups.com...
>
>
>
>
>

Quote:

Originally Posted by

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".


>

Quote:

Originally Posted by

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!


>

Quote:

Originally Posted by

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


>

Quote:

Originally Posted by

Thanks so very much!


>

Quote:

Originally Posted by

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
On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:

Quote:

Originally Posted by

The solution was posted by Peter Bromberg a few days ago :
>
http://groups.google.com/group/micr...framework.aspn...
>
Juan T. Llibre, asp.net MVP
asp.net faq :http://asp.net.do/faq/
foros de asp.net, en espaol :http://asp.net.do/foros/
==================================="Steve Kershaw" <steve_kers...@dotnet.itags.org.yahoo.comwrote in message
>
news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegr oups.com...
>
>
>
>
>

Quote:

Originally Posted by

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".


>

Quote:

Originally Posted by

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!


>

Quote:

Originally Posted by

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


>

Quote:

Originally Posted by

Thanks so very much!


>

Quote:

Originally Posted by

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
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:

Quote:

Originally Posted by

On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:

Quote:

Originally Posted by

The solution was posted by Peter Bromberg a few days ago :

http://groups.google.com/group/micr...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...@dotnet.itags.org.yahoo.comwrote in message

news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegr oups.com...

Quote:

Originally Posted by

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".


Quote:

Originally Posted by

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!


Quote:

Originally Posted by

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


Quote:

Originally Posted by

Thanks so very much!


Quote:

Originally Posted by

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
>
>

0 comments:

Post a Comment