Link to home
Start Free TrialLog in
Avatar of selhs
selhs

asked on

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.
Avatar of nobus
nobus
Flag of Belgium image

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
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).
Avatar of keistr
keistr

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.
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\
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,
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
Avatar of selhs

ASKER

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.

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.
regcleaner is good for uninstalling stuff

http://www.um.es/ftp/freeware/utilidades/
get regcleaner.exe there.
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.
PD: Do a "cacls c:\Truetime" and post the permissions of the directory
Avatar of selhs

ASKER

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.
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.
Avatar of selhs

ASKER

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.
Avatar of selhs

ASKER

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?
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.
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.
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,
Did it work?
Avatar of selhs

ASKER

I'll be trying that today at lunch, i'll keep you posted.
Avatar of selhs

ASKER

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?
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.
ASKER CERTIFIED SOLUTION
Avatar of SoyYop
SoyYop

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of selhs

ASKER

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.