Page 1 of 1

Issue with Batch Validation

Posted: Wed Mar 02, 2005 1:16 pm
by platinum
When I run the batch validation on a URL with -1 to follow all links I receive this error in RED highlighting and the validator Fails:

The following important message/error was generated and is repeated below:

Failed to initialize RcvdStream with "C:\DOCUME~1\0047690\LOCALS~1\Temp\\CSE24777068temp.html". This target will not be processed.

Does it have somethign to do with the local copy of the URL the Batch Validator is trying to Parse?

I am on a machine at work that I do not have Admin access to, just local user access.

I also want to add that it works fine when I validate the URL when it is opened in the HTMLValidator program, It is just giving me problems when I set it up in the Batch Validator to follow "all links".

Thanks!

Posted: Thu Mar 03, 2005 10:34 am
by Albert Wiersch
Hello,

Do you have write permission to that directory? CSE will need to create temporary files to do its job and I suspect that may be the problem. Your account needs write access to a temporary directory.

Have you tried it using another computer with an account that has more access?

Posted: Thu Mar 03, 2005 5:33 pm
by platinum
The only wierd thing is if I have multiple files open in Validator and then perform a Batch Function on all Files, it seems to work fine. Does this process work differently thatn running it through the Validator Batch Tool alone?

Posted: Thu Mar 03, 2005 5:59 pm
by Albert Wiersch
platinum wrote:The only wierd thing is if I have multiple files open in Validator and then perform a Batch Function on all Files, it seems to work fine. Does this process work differently thatn running it through the Validator Batch Tool alone?
Yes, it works differently. The Batch Wizard uses temporary files if it has to request a URL to do its job. By checking files that are opened in the editor, it does not have to request any URLs.

Posted: Tue Mar 08, 2005 2:46 pm
by platinum
Albert,

thanks for the clarification. Is it possible to store the temp files in another path? Maybe a registry entry?

Posted: Tue Mar 08, 2005 2:57 pm
by Albert Wiersch
platinum wrote:thanks for the clarification. Is it possible to store the temp files in another path? Maybe a registry entry?
Sorry, it is not possible to directly tell CSE HTML Validator to use a different temporary directory. CSE gets the Windows temporary directory by asking the operating system for it. I do not know of a way to have the OS use a different directory for temporary files, but it may be possible. I think it is strange that you wouldn't have write access to the temporary directory.

Can you open HTTP links using File->Open from the Web? I would think that you wouldn't be able to do that either if you have no access to write to the temp directory.

Posted: Wed Mar 16, 2005 9:35 am
by platinum
In both 6.5 and 7.0 b Open from the Web works fine. as does running a batch validation on all files if they are already open in CSEHTML Validator first. It is just the batch Validator Tool with a URL Target that is not working.



I belive I am getting closer to a cause of this. A coworker and I share our CSE settings so that we have consistency when validating our documents. It turns out that for some reason my CSE decided to pick up his ID which is why my TEMP path is wrong.

I checked my windows paths and environment settings and all the TEMP vars are set to my correct path.

Posted: Wed Mar 16, 2005 11:14 am
by Albert Wiersch
platinum wrote:I belive I am getting closer to a cause of this. A coworker and I share our CSE settings so that we have consistency when validating our documents. It turns out that for some reason my CSE decided to pick up his ID which is why my TEMP path is wrong. I checked my windows paths and environment settings and all the TEMP vars are set to my correct path.
I'm glad you mentioned this. I'm sorry I didn't see it before. Try exiting CSE, deleting the "WorkingDirectory" value in the key "HKEY_CURRENT_USER\Software\AI Internet Solutions\CSE HTML Validator v4\Editor\BatchWizard" and then rerunning CSE. It should restore that value to the correct temporary directory. I will make some modifications to the program so that a problem with this will be less likely to occur.

Please let me know if this fixes the problem.

Posted: Wed Mar 16, 2005 2:04 pm
by platinum
Yup, worked like a champ!

reg delete "HKEY_CURRENT_USER\Software\AI Internet Solutions\CSE HTML Validator v4\Editor\BatchWizard" /v WorkingDirectory

That was the key and value string I ran to delete it. As soon as I ran Batch Validator for the first time, it recreated the key.

Thanks!

Issue with Batch Validation

Posted: Thu May 26, 2005 3:48 pm
by jp
Albert,

We receive a similar message when user1 does Batch Validation.

Failed to initialize RcvdStream with "C:\DOCUME~1\user1\LOCALS~1\Temp\CSE65459620temp.html". This target will not be processed.

File monitor shows CSE attempts to write to the above folder as All Users, rather than user1 -- this is not permitted in our environment. Why does CSE attempt to write as All Users vs. user1?

Related info on user1: Does not have Admin access, but as a local user they do have write permission to their own TEMP directory. Does NOT shared CSE settings with another user. Periodically switches between a local C: setting file and a NAS E: drive setting file, and both were created by user1..

Firm runs CSE 6.531 on XP SP2.

Regards,
jp

Re: Issue with Batch Validation

Posted: Thu May 26, 2005 4:08 pm
by Albert Wiersch
jp wrote:Albert,

We receive a similar message when user1 does Batch Validation.

Failed to initialize RcvdStream with "C:\DOCUME~1\user1\LOCALS~1\Temp\CSE65459620temp.html". This target will not be processed.

File monitor shows CSE attempts to write to the above folder as All Users, rather than user1 -- this is not permitted in our environment. Why does CSE attempt to write as All Users vs. user1?
Hello,

Sorry for the trouble. I'll have to examine the code and see how this can be addressed for v7.00.

Posted: Thu May 26, 2005 6:55 pm
by Albert Wiersch
UPDATE:

In v7.0 BETA 5 and above, the Batch Wizard should now not use temporary files when downloading web documents. Instead, documents are now downloaded into temporary memory. This should prevent problems with temporary files and possibly also result in a slight efficiency increase.

Re: Issue with Batch Validation (Retraction)

Posted: Fri May 27, 2005 4:37 pm
by jp
I need to retract my prior post. The problem was not related to CSE. This error was caused inernally when CSE was packaged on an XP with short-names enabled and distributed to workstations with short-names disabled.

Our apologies for any confusion this may have caused.

Jeff

Re: Issue with Batch Validation (Retraction)

Posted: Fri May 27, 2005 4:43 pm
by Albert Wiersch
jp wrote:I need to retract my prior post. The problem was not related to CSE.
Hi Jeff,

Thanks for the update.