I’m doing a simple image resize and on the final I want to save it like:
path = "C:\\new_image.jpg";
img.Save(path, jpegCodec, encoderParams);
The problem is it saves to “……. \Users\Ervin\AppData\Local\VirtualStore\” .
What did I do wrong or what did I miss out?
UPDATE: I changed the path to an other folder, and it works. it seems I can’t save to C:\ only.
The resion for this is the user you are running as does not have write permissions to write directly to the C: drive this was new to either Win7 or Vista I am not shure which.
You can solve this by:
……. \Users\Ervin\AppData\Local\VirtualStore\ was added to help fix legacy applications when you updated. You may also notice a lot of entries in the “Program Files” in the virtual store. these are programs trying to write to their own directory in program files instead of %LOCALAPPDATA% like they should.