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

T

Trapulo

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

Walter Wang [MSFT]

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

Trapulo

Thank you.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top