you can't use the (ApplicationSettings) method in that case
what was the problem with the code in your original post?