Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

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

$
0
0

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?


Viewing all articles
Browse latest Browse all 21115

Trending Articles