Issue with Batch Validation

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
platinum
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 7
Joined: Fri Jan 28, 2005 11:41 am

Issue with Batch Validation

Post by platinum » Wed Mar 02, 2005 1:16 pm

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
Site Admin
Posts: 3416
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Post by Albert Wiersch » Thu Mar 03, 2005 10:34 am

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?
Image
Albert Wiersch

platinum
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 7
Joined: Fri Jan 28, 2005 11:41 am

Post by platinum » Thu Mar 03, 2005 5:33 pm

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
Site Admin
Posts: 3416
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Post by Albert Wiersch » Thu Mar 03, 2005 5:59 pm

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.
Image
Albert Wiersch

platinum
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 7
Joined: Fri Jan 28, 2005 11:41 am

Post by platinum » Tue Mar 08, 2005 2:46 pm

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
Site Admin
Posts: 3416
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Post by Albert Wiersch » Tue Mar 08, 2005 2:57 pm

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.
Image
Albert Wiersch

platinum
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 7
Joined: Fri Jan 28, 2005 11:41 am

Post by platinum » Wed Mar 16, 2005 9:35 am

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
Site Admin
Posts: 3416
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Post by Albert Wiersch » Wed Mar 16, 2005 11:14 am

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.
Image
Albert Wiersch

platinum
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 7
Joined: Fri Jan 28, 2005 11:41 am

Post by platinum » Wed Mar 16, 2005 2:04 pm

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

Issue with Batch Validation

Post by jp » Thu May 26, 2005 3:48 pm

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
Site Admin
Posts: 3416
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Issue with Batch Validation

Post by Albert Wiersch » Thu May 26, 2005 4:08 pm

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.
Image
Albert Wiersch

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3416
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Post by Albert Wiersch » Thu May 26, 2005 6:55 pm

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.
Image
Albert Wiersch

jp
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 2
Joined: Thu May 26, 2005 2:43 pm

Re: Issue with Batch Validation (Retraction)

Post by jp » Fri May 27, 2005 4:37 pm

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
Site Admin
Posts: 3416
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Issue with Batch Validation (Retraction)

Post by Albert Wiersch » Fri May 27, 2005 4:43 pm

jp wrote:I need to retract my prior post. The problem was not related to CSE.
Hi Jeff,

Thanks for the update.
Image
Albert Wiersch

Post Reply