PDA

View Full Version : System Error. Code: 2 with htm(l) files


24-Mar-2006, 09:24 AM
I just upgraded from 2.3.1 to 2.4.1 but I'm still having this problem:

When trying to compare .htm or .html files, the file viewer shows the following error twice:


System Error. Code: 2
The system cannot find the file specified



I've tried it using both the .htm and .html extensions with no change. The files can be completely empty and the error still occurs. It happens even when the file contents are the same. It happens when using two local files (Windows) and when comparing a local file to a file on a Unix FTP host. I've tried shorter filenames and longer filenames. The error stills shows up twice even if only one of the files is a .htm(l) file

However, if I rename the file extension (.a, .b, .htmlx, etc.) the problem goes away. Any thoughts?

Here's a link to my current BC Support zip (http://www.csb7.com/test/bc_system_error/bc_support.zip). There is nothing reported to the log when this happens, even when set to verbose reporting.

PS: Please enable page caching on this New Post page. I wrote a huge post, clicked submit, got an error about my Username length, clicked 'Back' to correct it and all of the fields were reset. Luckily I was able to copy my POSTed data by reading the request header with the LiveHTTPHeaders extension for Firefox, but otherwise I would have had to start all over again :(

Chris
24-Mar-2006, 03:07 PM
This is a problem with an external conversion rule. The error means BC can't find the external conversion program. It shows up once for each file.

In your rules, you have the "HTML Tidy" rule associated with *.htm and *.html files.

In Beyond Compare, select Tools|Options, go to Rules, edit the HTML Tidy Rule, and go to the Conversion tab. When you open HTML files with these rules, it calls the converter using the command "HtmlTidy\HtmlTidy.exe -o %t %s".

Check to make sure HtmlTidy.exe is in the correct location. It should be in "c:\program files\beyond compare 2\HtmlTidy\HtmlTidy.exe" if you installed Beyond Compare in the default location.

If you don't want to format your HTML files, you can just delete the HTML Tidy rule from your rules list. Otherwise you'll need to download a fresh copy of it from our web site or move it to the correct location.