none
Unable to read/write to the temp directory in C:\Documents and Settings\<username>\Local Settings\Temp on windows XP. I have admin access to this directory. RRS feed

  • Question

  • We recently came across a strange behavior in our windows based application. The application crashed on some Windows XP machine. And on analyzing the logs, we came to a conclusion that the application was unable to read/write to the temp directory in C:\Documents and Settings\<username>\Local Settings\Temp on windows XP. The same application ran perfectly fine on windows 7 machine.

    This is pretty much the same application that has been running on an XP machine for more than 5 years. Nothing much changed in the code.

    We are getting the temp path using the code:

    tempPath = Environment.GetEnvironmentVariable("TEMP");

    How do I solve this problem?

    Tuesday, August 27, 2013 6:11 AM