How do i fix this Windows XP Error?

C:\DOCUME~1\USERNAME\ALOCALS`1\TEMP\.  A temporary file needed for initialization could not be created or could not be written to.  Make sure that the directory path exists, and disk space is available.  Choose 'Close' to terminate the application.

This comes up when we try and log onto our payroll system TruTime.
selhsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nobusCommented:
first, check if the path above exists, and select the properties of the temp folder, now check if it is not marked as read only; if so, uncheck it.
then check if disk space is available.
if both are ok, it should work
BarthaxCommented:
It looks as though your payroll system is a legacy 16-bit program by the use of the short-paths specified.  As a result it could be having problems with the length of the temporary path.  I would suggest changing the temporary path to something like C:\TEMP and try that out.  Create the directory you plan to test with & to change the path, enter the Control Panel & choose the System option (Performance and Maintenance category if in Category view).  Under the Advanced tab of the System properties, click the Environment Variables button and Edit the TEMP and TMP variables, altering their values to the directory you create.  Click OK & OK again (you may need to reboot).  After the change has taken effect, try running the program again.

Note that if this works, then you may need to change the variable for each user on the XP machine(s).
keistrCommented:
Maybe your temporary internet files of the current user are taking up the maximum allowed hard drive space.

In Internet Explorer, click Tools, then Options, then Delete Temporary Internet Files. This allows the browser to save a temporary copy of the file so that it may be opened for viewing.
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

kneHCommented:
If this is the exact path (C:\DOCUME~1\USERNAME\ALOCALS`1\TEMP\) it's not really using your username...
That would explain it....
The username directory prolly should have been something like
C:\DOCUME~1\SELHS\ALOCALS`1\TEMP\
bicepsCommented:
SoyYopCommented:
I assume "username" is the user name, right?

Open

C:\DOCUME~1\USERNAME\ALOCALS`1\TEMP\

Delete every file in. You may be unable to delete one or two...

Probably has many files and the app gots confused. Barthax idea could also work.

Luck,
pajdaleCommented:
This error (or a very similar one) occurred with peachtree and ME.  Sometimes, antivirus software corrected the problem.  More often we upgraded to XP and that worked

Jim Dale
selhsAuthor Commented:
We are using an XP SP2 system. The Trutime software is acually an old legacy system that did run off a 16bit. It worked fine, till the user came back from vacation and I got that error. I went to the uninstall option under control panel and got this error the logfile C:\trutime\client.isu is not valid or corrupt. Ironically when I usually do the install, it's not to be installed locally on the PC, its installed to a network drive. I think if i can just take the original out of the system i can reinstall it, but even XP isn't allowing me to do that. Anyone know any good uninstall programs?
Also I tried all the following above with deleted temporary files ect and nothing has worked thus far.

IUFITSCommented:
http://support.microsoft.com/?kbid=213289

Microsoft says this error occurs mainly when there isn't adequate disk space.  Check the drive space on the users hard drive and see how much is available.  It's possible that is triggering the error.  Even though the application is installed on the network, I'm guessing that it's probably writing to local space on the C drive.

If the drive is full, you can either add more media or clean the drive up.  Delete all temp files, printer spool files if you can find them.  If you have enough RAM in the machine and can shrink the windows paging file you can try that (though if it impacts performance severly you may need to change it back).  Even though it's not the best tool, you can run the Windows disk cleanup application:

Start -> Accessories -> System Tools -> Disk Cleanup

_If_ that happens to work, I'd defrag after that to optimize space usage.
kneHCommented:
regcleaner is good for uninstalling stuff

http://www.um.es/ftp/freeware/utilidades/
get regcleaner.exe there.
SoyYopCommented:
Uhmm... could be a permissions problem?

Strange, but, is the user using another account? Or maybe, someone with admin privilegies used the software during user's vacations? If so, maybe the software recreated a file under another user's credentials, and is not able to write over it using the current ones.

With the user's credentials (log in as the user), create a copy (copy/paste) of the directory, rename the old one (C:\trutime ->C:\trutimeOld) and rename the new one to C:\trutime\ ("C:\Copy of trutime\ -> C:\trutime\).

If you get any error copying or renaming, then you have a permissions problem.

If not, try to run it. If it runs fine, give me the points ;). If it didn't, you don't loose anything...

By the way, if the program runs from the network, did it have to be installed on local drive? I mean, does the C:\trutime\ directory exists? Can it be run from somewere else? Does anyone have made any changes on the network copy? (maybe the problem is at some kind on initialization files that redirects the app to local drive instead of network)


You can fix permissions login in with admin credentialsright-clicking the folder, properties, security, adding the user, click advanced on same page, "Replace permission entries on all child objects", owner tab, replace owner by yourself, ok, ok, ok, ok...


Post results.
SoyYopCommented:
PD: Do a "cacls c:\Truetime" and post the permissions of the directory
selhsAuthor Commented:
C:\trutime BUILTIN\Administrators:(OR)(CI)F
<Account Domain not found.F
CREATOR OWNER:(OI)(CI)(IO)F
SELHS\FChilds:(OI)(CI)F
NT AUTHORITY/SYSTEM:(OI)(CI)F
BUILDIN\Users:(CI)(special access:)
                      SYNCHRONIZE
                      FILE_WRITE_DATA
BUILTIN\Users:(CI)(special access:)
                      SYNCHRONIZE
                      FILE_APPEND_DATA
BUILTIN\Users:(OI)(CI)R



FChilds is the user that needs to access this account, but i'm also locked out of it using the network administrative account. The HD is 40GB with 22.8GB free on it, so its not a space issue.
IUFITSCommented:
SoyYop had a good suggestion with the permissions.  You could give everyone full control over it and see if that works.  IF it does, then you know it's permissions and you can then tighten the permissions to the appropriate level.  If that doesn't work you know it's not permissions.  As SoyYop also mentioned, be sure to propogate those changes to all child objects.
selhsAuthor Commented:
I'm beginning to think this is now a server issue opposed to a user issue. I tried to load the client software on my PC which i've never had a problem before and i get the same error. I also noticed an error that said the 16 bit system maybe unstable.
Here is how our domains are setup. We have a NT box which houses the Trutime software and a few older programs that we don't use much. However it is used as our DHCP server also. Everyone else runs off the 2003 server, and i install the trutime software on our other domain. I checked the event viewer on both and haven't found anything out of the ordinary.
selhsAuthor Commented:
The manufactorer told me that its a 16 bit application, we have to tell Windows XP to run 16 bit applications, anyone know how to do that?
IUFITSCommented:
Here's how to run a 16-bit application in it's own memory space in XP.  

http://windows.about.com/od/tipsarchive/l/bltip055.htm

You can also right click on the program and see what options you have available under the 'Compatibility' tab.  I believe this will allow you to run applications in backwards compatibility mode.
IUFITSCommented:
Here's how to run a 16-bit application in it's own memory space in XP.  

http://windows.about.com/od/tipsarchive/l/bltip055.htm

You can also right click on the program and see what options you have available under the 'Compatibility' tab.  I believe this will allow you to run applications in backwards compatibility mode.
SoyYopCommented:
Here we go...

C:\trutime

BUILTIN\Administrators:(OR)(CI)F             <- Administrators can write
<Account Domain not found.F                   <- Domain Account not found... User Account deleted? Recreated? (*1)
CREATOR OWNER:(OI)(CI)(IO)F
SELHS\FChilds:(OI)(CI)F                           <- Fchilds can write. Is him the user? (*2)
NT AUTHORITY/SYSTEM:(OI)(CI)F
BUILDIN\Users:(CI)(special access:)
                      SYNCHRONIZE
                      FILE_WRITE_DATA
BUILTIN\Users:(CI)(special access:)
                      SYNCHRONIZE
                      FILE_APPEND_DATA
BUILTIN\Users:(OI)(CI)R                           <- Normal users have limited options... (*3)

From (*1), an accouint was deleted. maybe, the old user one.
      ****** If the account was recreated, permissions have to be recreated ON THE NETWORK SHARE AND IN THE c:\trutime FOLDER
From (*2), If FChilds is the user, AND selhs the domain (and not the computer), he has r/w access
From (*3), Normal users cannot create files...

if FChilds is not the user, add the user to the folder permissions with full control to the folder. What you can do for testing is:

a) Login as administrator
b) Connect the network drive where the application resides and be sure you have r/w access to it
c) Run the app. If it runs properly, then the problem is permissions...

As your app was running before, I don't think it would have problems with XP itself... while running it in compatibility mode could help.

Luck,
SoyYopCommented:
Did it work?
selhsAuthor Commented:
I'll be trying that today at lunch, i'll keep you posted.
selhsAuthor Commented:
Nope it didn't work. I even ran a virus scan to see if it would detect anything that might change the permissions upon boot up, but that even came up negative. Anymore ideas why i'm getting this error?
IUFITSCommented:
Can you get it to work on any other PC, preferably one that has a fresh build on it?  If so, as a last case scenario you may think about re-building the system to start from a clean slate.
SoyYopCommented:
You can get a machine win FAT32 and XP, and try to run it from there ( Same idea as IUFITS, but this will discard ANY client security problems). But seems to be related to something else...

I have a few ideas, but FIRST make a backup:

a) Server problems. User deleted? Recreated? Maybe have not access anymore to modify files. Can you do the following?
    Rename existing files (from the program itself, rename them back after testing: ie, data.db->data.db2->data.db)
    Create a copy and delete original, rename copy (BE CAREFULL: data.db-> copy of data.db, delete original data.db, rename copy of data.db->data.db)
b) Data corruption
    Do you have a recent backup? Maybe datafiles or binaries are corrupted. Create a copy and restore backup...
c) Virus corrupted binaries
    Maybe there was a virus, cleaned by an antivirus, and no one noticed. But the software binaries are corrupted, so they don't run...
    Reinstall the software and replace the exes from the new copy
   

Wish I give some ideas...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
selhsAuthor Commented:
I believe it was data corruption. I went through and tried to do a XP repair, once when all the system files were back on, it worked fine and didn't have any problems after that. Thanks for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.