This error occurs when a user is set to a culture setting that is not available in the OS. You have to change the culture setting in the environment or through SQL in [UserConfig] which will reset it to default.
Create Database permission denied in database 'master' error when generating upgrade script occurs when the user does not have sufficient rights on the server.