Monday, March 26, 2012

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
>

0 comments:

Post a Comment