You shouldn't be writing anything under MySettings class unless you are going to do something extra while Saving or changing the setting.

Do you get an error while executing/building the program? If so what does the error message say?