I brought this issue up before:
http://www.visualcron.co....aspx?g=posts&t=3898 After some time spent understanding how the VC service must be configured, and a clean install, I thought the problem was resolved.
After not looking at the server for 2 weeks, I am getting the same problem again. (The job is not configured to run on a schedule, just ad-hoc for now, and this is the first time Anybody's been on the server in the past 2 weeks.)
A summary of my problem:
1) Using Win2008R2 server
2) Using VC 7.1.3 with service configured to interact with desktop
3) Jobs were configured and ran successfully with credentials using "Load User Profile"
4) [two weeks go by without looking at this server; no Windows updates, but automatic reboots every weekend]
5) Exception replicates next time I'm logged into server
6) As a test, set up job to run simple cmd script calling "date /t"
--> test job fails with "Load User Profile"
--> test job completes successfully without "Load User Profile"
7) Reboot server
--> Same exception for "Load User Profile"
8) Upgrade to VC 7.1.4
9) Validate VC service is still configured to interact with desktop
--> Same exception for "Load User Profile"
10) Reboot server
--> Same exception for "Load User Profile"
I'm really not sure what's going on here. We are successfully using VC 7.0.8 daily on another server. Given the problems I'm having here, I'm afraid to upgrade that server and wondering whether I should downgrade this server to 7.0.8 in an attempt to find something that works for me.
I don't see anything that jumps out at me in the event log.
a) there is this one entry under source "User Profile Service":
Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards.
DETAIL -
1 user registry handles leaked from \Registry\User\S-1-5-21-927577446-3854444739-2300020530-1209:
Process 3828 (\Device\HarddiskVolume2\Windows\System32\svchost.exe) has opened key \REGISTRY\USER\S-1-5-21-927577446-3854444739-2300020530-1209
b) there's a message in the system log:
Application popup: cmd.exe - Application Error : The application was unable to start correctly (0xc0000142). Click OK to close the application.
Any guidance on how to debug is really appreciated.