I was doing some cleanup of user profiles on our SharePoint server and noticed several folders under C:\Users named TEMP.<DOMAIN>.XXX (starting at 001 and going to about 020). I tried deleting these (they're temp directories right?) and they weren't all successfully deleted so I left them. The next day I come in and am getting the following error on one of my web apps:
Web Part Error: One of the properties of the Web Part has an incorrect format. Microsoft SharePoint Foundationcannot deserialize the Web Part. Check the format of the properties and try again.
I figured the person in charge had messed something up so I attempted to connect to the site with SPD to check things out, but then got the following error:
soap:ServerServer was unable to process request. ---> Could not find a part of the path'C:\Users\TEMP.<DOMAIN>.010\AppData\Local\Temp\-jnbdhnf.tmp'
I was able to restore the temp folder in that directory and the problem was resolved (web part error went away and I was able to connect to the site with SPD).
The problem is, another web app (mysites) also produces the web part error and a different folder name under C:\Users is specified when trying to connect with SPD.
My question is, why is SharePoint using this area for "temporary" files? I understand something must've been configured incorrectly, but my main goal is to get the farm working correctly (I'm guessing there are other sites that are having issues which I haven't heard about yet).
Since I can't restore the rest of the files that I deleted, what should I do to resolve these errors?