A mistake or typo in user.config can also cause this kind of error. You can't really rely on the line numbers reported in the error because of the way <appSettings from user.config are combined with web.config, the runtime sees it all as one file so it can report incorrect line numbers. Also make sure your user.config is using utf8 encoding, I fixed the user.config.sample file which also had ansi encoding.