Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

asp.net

wcf

We're getting a "The current configuration system does not support user-scoped settings" compilation exception being thrown when navigating to a WCF service on our staging server.

We're getting this exception through the app consuming the WCF service and when we navigate to the .svc test page directly.

This works fine on our test servers - and the websites are setup in the same way (in IIS, in the filesystem etc. etc.).

Does anybody have an idea of what this would be?

like image 757
Robert W Avatar asked Jan 12 '10 12:01

Robert W


3 Answers

My problem was simple, check in the project's Settings.setting page/file to see if the Scope column is set to User instead of Application:

enter image description here

like image 65
mlapaglia Avatar answered Nov 19 '22 00:11

mlapaglia


This was bugging out because one of the settings in a project that the WCF webservice was referencing had its scope set to "user" rather than "application".

So I would recommend people being careful that they check the projects being referenced by the webservice project, as well as the webservice project itself, and make sure the scope of all the settings is application rather than user.

Hope it helps somebody who's trying to rack their brain about anything similar.

like image 32
Robert W Avatar answered Nov 19 '22 00:11

Robert W


User scope settings are stored in a config file hidden away in the C:\Users\\AppData\Local\ folder. Maybe the setup of your server prohibits .Net to write files there?

Do you have any user-scope settings? I don't think these are necessary for a service? Maybe you should change the settings to Application Scope and your problem is fixed.

like image 21
Gerrie Schenck Avatar answered Nov 19 '22 01:11

Gerrie Schenck