How do you set it? With M-x set-variable RET ..., or with M-: (setq ...)? In each case you have to quote file, e.g. say 'file.