Samples didn't work from (user)\AppData location

Okay, I finally found why the sdk samples raised an unknown error after compilation on my setup. It somehow can't write to the debuglog when it's under (user)\AppData, copying the folder to a different location solved the problem.