Issue with Batch Validation

For technical support and bug reports for all editions of CSS HTML Validator, including htmlval for Linux and Mac.
platinum
Rank 0 - Newcomer
Posts: 7
Joined: Fri Jan 28, 2005 11:41 am

Issue with Batch Validation

Post 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!
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Post 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?
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
platinum
Rank 0 - Newcomer
Posts: 7
Joined: Fri Jan 28, 2005 11:41 am

Post 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?
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Post 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.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
platinum
Rank 0 - Newcomer
Posts: 7
Joined: Fri Jan 28, 2005 11:41 am

Post by platinum »

Albert,

thanks for the clarification. Is it possible to store the temp files in another path? Maybe a registry entry?
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Post 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.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
platinum
Rank 0 - Newcomer
Posts: 7
Joined: Fri Jan 28, 2005 11:41 am

Post 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.
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Post 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.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
platinum
Rank 0 - Newcomer
Posts: 7
Joined: Fri Jan 28, 2005 11:41 am

Post 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!
jp
Rank 0 - Newcomer
Posts: 2
Joined: Thu May 26, 2005 2:43 pm

Issue with Batch Validation

Post 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
Jeff
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Re: Issue with Batch Validation

Post 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.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Post 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.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
jp
Rank 0 - Newcomer
Posts: 2
Joined: Thu May 26, 2005 2:43 pm

Re: Issue with Batch Validation (Retraction)

Post 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
Jeff
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Re: Issue with Batch Validation (Retraction)

Post 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.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial