Showing posts with label dll. Show all posts
Showing posts with label dll. Show all posts

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!
SteveThe 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.com> wrote in message
news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegroups.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
>
On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:
> The solution was posted by Peter Bromberg a few days ago :
> http://groups.google.com/group/micr...amework.aspn...
> Juan T. Llibre, asp.net MVP
> asp.net faq :http://asp.net.do/faq/
> foros de asp.net, en espa=F1ol :http://asp.net.do/foros/
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"Steve Kershaw" <steve_kers...@dotnet.itags.org.yahoo.com> =
wrote in message
> news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegroups.com...
>
>
>
>
>
>
>
> - 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
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.com> wrote in message
news:1176324797.391045.45160@dotnet.itags.org.n76g2000hsh.googlegroups.com...
On Apr 11, 2:21 pm, "Juan T. Llibre" <nomailrepl...@dotnet.itags.org.nowhere.com>
wrote:
> The solution was posted by Peter Bromberg a few days ago :
> http://groups.google.com/group/micr...amework.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.co
m> wrote in message
> news:1176321253.364736.216290@dotnet.itags.org.q75g2000hsh.googlegroups.com...
>
>
>
>
>
>
>
> - 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

The current configuration system does not support user-scoped settings.

Hi,
I keep on getting this error: "The current configuration system does
not support user-scoped settings." I'm trying to use a DLL that I have
developed previously. When I try to access a public method in that DLL
I get this error.
I know it's probably a configuration setting somewhere, but where and
what do I set it to?
Thanks in advance for your help.Does this help?
http://www.ben-rush.net/blog/PermaL... />
780&dotnet
My guess it's related to something like this - and I'm making this
assumption because you're publishing this question on an ASP.net newsgroup.
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
"Steve Kershaw" <steve_kershaw@dotnet.itags.org.yahoo.com> wrote in message
news:1176251428.861886.154110@dotnet.itags.org.y5g2000hsa.googlegroups.com...
> Hi,
> I keep on getting this error: "The current configuration system does
> not support user-scoped settings." I'm trying to use a DLL that I have
> developed previously. When I try to access a public method in that DLL
> I get this error.
> I know it's probably a configuration setting somewhere, but where and
> what do I set it to?
> Thanks in advance for your help.
>

The current configuration system does not support user-scoped settings.

What does mean this error?
The current configuration system does not support user-scoped settings.
I'm accessing a my.settings data from a DAL dll referenced by an ASP.NET
app. I've a similar other application that works well. The one with the
problem is an 1.1 upgraded, the one that works a native 2.0. I cannot find
differences :(Ok, it was very stupid to find.. :((
"Trapulo" <trapulo@dotnet.itags.org.noemail.noemail> wrote in message
news:eqwOWgtbGHA.1264@dotnet.itags.org.TK2MSFTNGP05.phx.gbl...
> What does mean this error?
> The current configuration system does not support user-scoped settings.
>
> I'm accessing a my.settings data from a DAL dll referenced by an ASP.NET
> app. I've a similar other application that works well. The one with the
> problem is an 1.1 upgraded, the one that works a native 2.0. I cannot find
> differences :(
>
>
>
Hi Trapulo,
Thank you for posting.
My.Settings object in VB.NET 2005 is normally used to access user-scope
settings. User-scope settings are often used by WinForm applications which
run under a specific user account. Since ASP.NET applications run under a
server account, using user-scope settings here is not appropriate.
If you are using ConfigruationSettings.AppSettings previously in your 1.1
DAL dll, you can now use ConfigurationManager.AppSettings after upgraded to
2.0 (remember to reference System.Configuration assembly first).
If you still want to access user-scope settings, you can use Profiles in
ASP.NET 2.0.
If there is anything unclear, please feel free to post here.
Regards,
Walter Wang
Microsoft Online Community Support
========================================
==========
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
==========
This posting is provided "AS IS" with no warranties, and confers no rights.
Thank you.
In fact I jsut selected "user" scope insted of "application" scope on my
project's settings.
"Walter Wang [MSFT]" <wawang@dotnet.itags.org.online.microsoft.com> wrote in message
news:OZtS%23E0bGHA.4776@dotnet.itags.org.TK2MSFTNGXA01.phx.gbl...
> Hi Trapulo,
> Thank you for posting.
> My.Settings object in VB.NET 2005 is normally used to access user-scope
> settings. User-scope settings are often used by WinForm applications which
> run under a specific user account. Since ASP.NET applications run under a
> server account, using user-scope settings here is not appropriate.
> If you are using ConfigruationSettings.AppSettings previously in your 1.1
> DAL dll, you can now use ConfigurationManager.AppSettings after upgraded
> to
> 2.0 (remember to reference System.Configuration assembly first).
> If you still want to access user-scope settings, you can use Profiles in
> ASP.NET 2.0.
> If there is anything unclear, please feel free to post here.
> Regards,
> Walter Wang
> Microsoft Online Community Support
>

The current configuration system does not support user-scoped settings.

What does mean this error?
The current configuration system does not support user-scoped settings.

I'm accessing a my.settings data from a DAL dll referenced by an ASP.NET
app. I've a similar other application that works well. The one with the
problem is an 1.1 upgraded, the one that works a native 2.0. I cannot find
differences :(Ok, it was very stupid to find.. :((

"Trapulo" <trapulo@dotnet.itags.org.noemail.noemail> wrote in message
news:eqwOWgtbGHA.1264@dotnet.itags.org.TK2MSFTNGP05.phx.gbl...
> What does mean this error?
> The current configuration system does not support user-scoped settings.
>
> I'm accessing a my.settings data from a DAL dll referenced by an ASP.NET
> app. I've a similar other application that works well. The one with the
> problem is an 1.1 upgraded, the one that works a native 2.0. I cannot find
> differences :(
>
>
Hi Trapulo,

Thank you for posting.

My.Settings object in VB.NET 2005 is normally used to access user-scope
settings. User-scope settings are often used by WinForm applications which
run under a specific user account. Since ASP.NET applications run under a
server account, using user-scope settings here is not appropriate.

If you are using ConfigruationSettings.AppSettings previously in your 1.1
DAL dll, you can now use ConfigurationManager.AppSettings after upgraded to
2.0 (remember to reference System.Configuration assembly first).

If you still want to access user-scope settings, you can use Profiles in
ASP.NET 2.0.

If there is anything unclear, please feel free to post here.

Regards,

Walter Wang
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Thank you.

In fact I jsut selected "user" scope insted of "application" scope on my
project's settings.

"Walter Wang [MSFT]" <wawang@dotnet.itags.org.online.microsoft.com> wrote in message
news:OZtS%23E0bGHA.4776@dotnet.itags.org.TK2MSFTNGXA01.phx.gbl...
> Hi Trapulo,
> Thank you for posting.
> My.Settings object in VB.NET 2005 is normally used to access user-scope
> settings. User-scope settings are often used by WinForm applications which
> run under a specific user account. Since ASP.NET applications run under a
> server account, using user-scope settings here is not appropriate.
> If you are using ConfigruationSettings.AppSettings previously in your 1.1
> DAL dll, you can now use ConfigurationManager.AppSettings after upgraded
> to
> 2.0 (remember to reference System.Configuration assembly first).
> If you still want to access user-scope settings, you can use Profiles in
> ASP.NET 2.0.
> If there is anything unclear, please feel free to post here.
> Regards,
> Walter Wang
> Microsoft Online Community Support

The current configuration system does not support user-scoped settings.

Hi,

I keep on getting this error: "The current configuration system does
not support user-scoped settings." I'm trying to use a DLL that I have
developed previously. When I try to access a public method in that DLL
I get this error.

I know it's probably a configuration setting somewhere, but where and
what do I set it to?

Thanks in advance for your help.Does this help?

http://www.ben-rush.net/blog/PermaL...8f0f3780&dotnet
My guess it's related to something like this - and I'm making this
assumption because you're publishing this question on an ASP.net newsgroup.

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
"Steve Kershaw" <steve_kershaw@dotnet.itags.org.yahoo.comwrote in message
news:1176251428.861886.154110@dotnet.itags.org.y5g2000hsa.googlegro ups.com...

Quote:

Originally Posted by

Hi,
>
I keep on getting this error: "The current configuration system does
not support user-scoped settings." I'm trying to use a DLL that I have
developed previously. When I try to access a public method in that DLL
I get this error.
>
I know it's probably a configuration setting somewhere, but where and
what do I set it to?
>
Thanks in advance for your help.
>

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