Exe gives error but copy works fine
If I run tidy (http://www.w3.org/People/Raggett/tidy/) and tell it to update the html file, I get "Error: Can't open 'Test.htm'". However, if I make a copy of the tidy.exe, then the error goes away. The copy of tidy.exe that gives the error came from a CD that I wrote on a different computer (it worked fine on that computer). The permissions on the tidy.exe that doesn't work were different from the permissions that Windows put on the copy, but I've changed them to be the same. Still have the problem.I'm running Vista Home Premium. UAC is on in quiet mode, although turning it off doesn't solve the problem.Here is what happens when I run tidy: C:\Mine\Bug>\sys\bin\Tidy.exe -m Test.htm Info: Doctype given is "-//W3C//DTD HTML 4.01 Transitional//EN" Info: Document content looks like HTML 4.01 Transitional No warnings or errors were found. Error: Can't open "Test.htm" You are recommended to use CSS to specify the font and properties such as its size and color. This will reduce the size of HTML files and make them easier to maintain compared with using <FONT> elements. To learn more about HTML Tidy see http://tidy.sourceforge.net Please send bug reports to html-tidy@w3.org HTML and CSS specifications are available from http://www.w3.org/ Lobby your company to join W3C, see http://www.w3.org/Consortium C:\Mine\Bug>\Mine\Bug\Tidy.exe -m Test.htm Info: Doctype given is "-//W3C//DTD HTML 4.01 Transitional//EN" Info: Document content looks like HTML 4.01 Transitional No warnings or errors were found. To learn more about HTML Tidy see http://tidy.sourceforge.net Please send bug reports to html-tidy@w3.org HTML and CSS specifications are available from http://www.w3.org/ Lobby your company to join W3C, see http://www.w3.org/Consortium C:\Mine\Bug>Here is what subinacl says about the tidy.exe files (both give the identical report): /control=0x400 SE_DACL_AUTO_INHERITED-0x0400 /owner =david-pc\david /primary group =david-pc\none /audit ace count =0 /perm. ace count =4 /pace =authenticated users ACCESS_ALLOWED_ACE_TYPE-0x0 INHERITED_ACE-0x10 Type of access: Change Detailed Access Flags : FILE_READ_DATA-0x1 FILE_WRITE_DATA-0x2 FILE_APPEND_DATA-0x4 FILE_READ_EA-0x8 FILE_WRITE_EA-0x10 FILE_EXECUTE-0x20 FILE_READ_ATTRIBUTES-0x80 FILE_WRITE_ATTRIBUTES-0x100 DELETE-0x10000 READ_CONTROL-0x20000 SYNCHRONIZE-0x100000 /pace =system ACCESS_ALLOWED_ACE_TYPE-0x0 INHERITED_ACE-0x10 Type of access: Full Control Detailed Access Flags : FILE_READ_DATA-0x1 FILE_WRITE_DATA-0x2 FILE_APPEND_DATA-0x4 FILE_READ_EA-0x8 FILE_WRITE_EA-0x10 FILE_EXECUTE-0x20 FILE_DELETE_CHILD-0x40 FILE_READ_ATTRIBUTES-0x80 FILE_WRITE_ATTRIBUTES-0x100 DELETE-0x10000 READ_CONTROL-0x20000 WRITE_DAC-0x40000 WRITE_OWNER-0x80000 SYNCHRONIZE-0x100000 /pace =builtin\administrators ACCESS_ALLOWED_ACE_TYPE-0x0 INHERITED_ACE-0x10 Type of access: Full Control Detailed Access Flags : FILE_READ_DATA-0x1 FILE_WRITE_DATA-0x2 FILE_APPEND_DATA-0x4 FILE_READ_EA-0x8 FILE_WRITE_EA-0x10 FILE_EXECUTE-0x20 FILE_DELETE_CHILD-0x40 FILE_READ_ATTRIBUTES-0x80 FILE_WRITE_ATTRIBUTES-0x100 DELETE-0x10000 READ_CONTROL-0x20000 WRITE_DAC-0x40000 WRITE_OWNER-0x80000 SYNCHRONIZE-0x100000 /pace =builtin\users ACCESS_ALLOWED_ACE_TYPE-0x0 INHERITED_ACE-0x10 Type of access: Full Control Detailed Access Flags : FILE_READ_DATA-0x1 FILE_WRITE_DATA-0x2 FILE_APPEND_DATA-0x4 FILE_READ_EA-0x8 FILE_WRITE_EA-0x10 FILE_EXECUTE-0x20 FILE_DELETE_CHILD-0x40 FILE_READ_ATTRIBUTES-0x80 FILE_WRITE_ATTRIBUTES-0x100 DELETE-0x10000 READ_CONTROL-0x20000 WRITE_DAC-0x40000 WRITE_OWNER-0x80000 SYNCHRONIZE-0x100000Running the command prompt as an administrator solves the problem. I could just erase the tidy.exe that doesn't work and use the copy, but I'd like to understand what is causing the problem. Can anyone shed any light?
November 28th, 2007 10:10pm

Hi, Thank you for your post. After checking the website http://www.w3.org/People/Raggett/tidy/, it seems that the application is not designed for Windows Vista. If the product is not compatible with Windows Vista, it is likely that we encounter some strange issues when running it under Windows Vista. In fact, Windows Vista has include some features (such as run the program in compatibility mode, run the program as an administrator) to resolve part of compatibility issue, you may refer to the KB article 931362 (http://support.microsoft.com/kb/931362/ ) for more information. To analyze the root cause of the issue, I suggest contacting the application vendor since we have little information about this application. Based on my experience, you will have to trace/debug the behavior when the application is launched and try to open the .htm file. Also, please confirm with the vendor if this application is fully compatible with Windows Vista. Additionally, Ive provided some suggestions to identify the issue for you reference: =========== 1. Take ownership of the problematic copy and check the result. 2. Enable Filemon with running the application in the following scenarios:-----------------Scenario 1: Run the application on the normal computer.Scenario 2: Run the normal copy on the Windows Vista.Scenario 3: Run the problematic copy on the Windows Vista.After that, you can compare the filemon logs and check if there are some clues for identifying the issue. Hope it helps. Sincerely, Joson Zhou Microsoft Online Community Support
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2007 1:31pm

> After checking the website http://www.w3.org/People/Raggett/tidy/, it> seems that the application is not designed for Windows Vista.It was written before Vista was released. However, it is a simple console app. It reads a file, then rewrites the same file.> If the product is not compatible with Windows Vista, it is likely> that we encounter some strange issues when running it under Windows> Vista. In fact, Windows Vista has include some features (such as run> the program in compatibility mode, run the program as an> administrator) to resolve part of compatibility issue, you may refer> to the KB article 931362 (http://support.microsoft.com/kb/931362/)> for more information.Except only one copy of the app doesn't run. Any other copies run just fine.Also, I've had similar weird problems with Vista before. But, by the time I'd fixed the weirdness, I hadn't saved the original weirdness, so I didn't have something I could reproduce. This time, I was careful to save it.> To analyze the root cause of the issue, I suggest contacting the> application vendor since we have little information about this> application.It is a simple console app that reads a file, checks that the hmtl is proper html, then rewrites the file (tidying and correcting the html). I doubt the author will be interested in debugging Vista.> Additionally, Ive provided some suggestions to identify the issue for you reference:> 1. Take ownership of the problematic copy and check the result.The owner of both copies is the same. I posted what subinacl says. subinacl gives identical output for both copies.> 2. Enable Filemon with running the application in the following scenarios:>> Scenario 1: Run the application on the normal computer.I've only got a Vista computer, at the moment.> Scenario 2: Run the normal copy on the Windows Vista.> Scenario 3: Run the problematic copy on the Windows Vista.Below is the output from procmon. First is from the copy that doesn' work. Then from the copy that does work. The problem is the "CreateFile C:\Mine\Bug\Test.htm ACCESS DENIED", but how do I find out why access is denied?14788 4:33:34.4401818 PM Tidy.exe 2804 Process Start SUCCESS Parent PID: 325214789 4:33:34.4401837 PM Tidy.exe 2804 Thread Create SUCCESS Thread ID: 51614958 4:33:34.4489246 PM Tidy.exe 2804 Load Image C:\Sys\Bin\Tidy.exe SUCCESS Image Base: 0x400000, Image Size: 0x4a00014965 4:33:34.4493072 PM Tidy.exe 2804 Load Image C:\Windows\System32\ntdll.dll SUCCESS Image Base: 0x779c0000, Image Size: 0x11e00014967 4:33:34.4494308 PM Tidy.exe 2804 CreateFile C:\Windows\Prefetch\TIDY.EXE-87A98FBE.pf SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: None, AllocationSize: n/a, OpenResult: Opened14969 4:33:34.4495060 PM Tidy.exe 2804 QueryStandardInformationFile C:\Windows\Prefetch\TIDY.EXE-87A98FBE.pf SUCCESS AllocationSize: 8,192, EndOfFile: 4,554, NumberOfLinks: 1, DeletePending: False, Directory: False14970 4:33:34.4495235 PM Tidy.exe 2804 ReadFile C:\Windows\Prefetch\TIDY.EXE-87A98FBE.pf SUCCESS Offset: 0, Length: 4,554, Priority: Normal14972 4:33:34.4495581 PM Tidy.exe 2804 CloseFile C:\Windows\Prefetch\TIDY.EXE-87A98FBE.pf SUCCESS14973 4:33:34.4496455 PM Tidy.exe 2804 CreateFile C: SUCCESS Desired Access: Read Attributes, Write Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Complete If Oplocked, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened14974 4:33:34.4497105 PM Tidy.exe 2804 QueryInformationVolume C: SUCCESS VolumeCreationTime: 9/25/2007 12:02:43 PM, VolumeSerialNumber: 1CE5-1203, SupportsObjects: True, VolumeLabel: OS14975 4:33:34.4497227 PM Tidy.exe 2804 FileSystemControl C: SUCCESS Control: FSCTL_FILE_PREFETCH14981 4:33:34.4498074 PM Tidy.exe 2804 CreateFile C:\Mine SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Complete If Oplocked, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened14989 4:33:34.4500447 PM Tidy.exe 2804 SetBasicInformationFile C:\Mine SUCCESS CreationTime: -1, LastAccessTime: -1, LastWriteTime: -1, ChangeTime: -1, FileAttributes: n/a14990 4:33:34.4500587 PM Tidy.exe 2804 QueryFileInternalInformationFile C:\Mine SUCCESS IndexNumber: 0x100000000f0b814991 4:33:34.4500716 PM Tidy.exe 2804 FileSystemControl C:\Mine END OF FILE Control: FSCTL_FILE_PREFETCH14992 4:33:34.4501092 PM Tidy.exe 2804 CloseFile C:\Mine SUCCESS14996 4:33:34.4504597 PM Tidy.exe 2804 CreateFile C:\Mine\Bug SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Complete If Oplocked, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened14998 4:33:34.4506448 PM Tidy.exe 2804 SetBasicInformationFile C:\Mine\Bug SUCCESS CreationTime: -1, LastAccessTime: -1, LastWriteTime: -1, ChangeTime: -1, FileAttributes: n/a14999 4:33:34.4506577 PM Tidy.exe 2804 QueryFileInternalInformationFile C:\Mine\Bug SUCCESS IndexNumber: 0x33000000025f1e15000 4:33:34.4506698 PM Tidy.exe 2804 FileSystemControl C:\Mine\Bug END OF FILE Control: FSCTL_FILE_PREFETCH15001 4:33:34.4507086 PM Tidy.exe 2804 CloseFile C:\Mine\Bug SUCCESS15009 4:33:34.4508822 PM Tidy.exe 2804 CreateFile C:\Sys SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Complete If Oplocked, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened15011 4:33:34.4510360 PM Tidy.exe 2804 SetBasicInformationFile C:\Sys SUCCESS CreationTime: -1, LastAccessTime: -1, LastWriteTime: -1, ChangeTime: -1, FileAttributes: n/a15012 4:33:34.4510486 PM Tidy.exe 2804 QueryFileInternalInformationFile C:\Sys SUCCESS IndexNumber: 0x10000000113bb15013 4:33:34.4510604 PM Tidy.exe 2804 FileSystemControl C:\Sys SUCCESS Control: FSCTL_FILE_PREFETCH15014 4:33:34.4510762 PM Tidy.exe 2804 CloseFile C:\Sys SUCCESS15017 4:33:34.4512221 PM Tidy.exe 2804 CreateFile C:\Sys\Bin SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Complete If Oplocked, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened15018 4:33:34.4513722 PM Tidy.exe 2804 SetBasicInformationFile C:\Sys\Bin SUCCESS CreationTime: -1, LastAccessTime: -1, LastWriteTime: -1, ChangeTime: -1, FileAttributes: n/a15019 4:33:34.4513893 PM Tidy.exe 2804 QueryFileInternalInformationFile C:\Sys\Bin SUCCESS IndexNumber: 0x10000000113fb15020 4:33:34.4514018 PM Tidy.exe 2804 FileSystemControl C:\Sys\Bin END OF FILE Control: FSCTL_FILE_PREFETCH15021 4:33:34.4514414 PM Tidy.exe 2804 CloseFile C:\Sys\Bin SUCCESS15025 4:33:34.4516575 PM Tidy.exe 2804 CreateFile C:\Windows SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Complete If Oplocked, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened15031 4:33:34.4518403 PM Tidy.exe 2804 SetBasicInformationFile C:\Windows SUCCESS CreationTime: -1, LastAccessTime: -1, LastWriteTime: -1, ChangeTime: -1, FileAttributes: n/a15032 4:33:34.4518531 PM Tidy.exe 2804 QueryFileInternalInformationFile C:\Windows SUCCESS IndexNumber: 0x10000000001f315034 4:33:34.4518699 PM Tidy.exe 2804 FileSystemControl C:\Windows END OF FILE Control: FSCTL_FILE_PREFETCH15035 4:33:34.4519089 PM Tidy.exe 2804 CloseFile C:\Windows SUCCESS15038 4:33:34.4520940 PM Tidy.exe 2804 CreateFile C:\Windows\System32 SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Complete If Oplocked, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened15039 4:33:34.4522704 PM Tidy.exe 2804 SetBasicInformationFile C:\Windows\System32 SUCCESS CreationTime: -1, LastAccessTime: -1, LastWriteTime: -1, ChangeTime: -1, FileAttributes: n/a15040 4:33:34.4522829 PM Tidy.exe 2804 QueryFileInternalInformationFile C:\Windows\System32 SUCCESS IndexNumber: 0x100000000056d15041 4:33:34.4522946 PM Tidy.exe 2804 FileSystemControl C:\Windows\System32 END OF FILE Control: FSCTL_FILE_PREFETCH15042 4:33:34.4523541 PM Tidy.exe 2804 CloseFile C:\Windows\System32 SUCCESS15045 4:33:34.4525546 PM Tidy.exe 2804 CreateFile C:\Windows\System32\ntdll.dll SUCCESS Desired Access: Read Data/List Directory, Execute/Traverse, Read Attributes, Disposition: Open, Options: Non-Directory File, Complete If Oplocked, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened15046 4:33:34.4527610 PM Tidy.exe 2804 SetBasicInformationFile C:\Windows\System32\ntdll.dll SUCCESS CreationTime: -1, LastAccessTime: -1, LastWriteTime: -1, ChangeTime: -1, FileAttributes: n/a15047 4:33:34.4527746 PM Tidy.exe 2804 QueryAttributeTagFile C:\Windows\System32\ntdll.dll SUCCESS Attributes: A, ReparseTag: 0x015048 4:33:34.4527848 PM Tidy.exe 2804 QueryFileInternalInformationFile C:\Windows\System32\ntdll.dll SUCCESS IndexNumber: 0x10000000037f515050 4:33:34.4528007 PM Tidy.exe 2804 QueryStandardInformationFile C:\Windows\System32\ntdll.dll SUCCESS AllocationSize: 1,163,264, EndOfFile: 1,162,656, NumberOfLinks: 2, DeletePending: False, Directory: False15054 4:33:34.4528982 PM Tidy.exe 2804 CreateFile C:\Windows\System32\kernel32.dll SUCCESS Desired Access: Read Data/List Directory, Execute/Traverse, Read Attributes, Disposition: Open, Options: Non-Directory File, Complete If Oplocked, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened15055 4:33:34.4531218 PM Tidy.exe 2804 SetBasicInformationFile C:\Windows\System32\kernel32.dll SUCCESS CreationTime: -1, LastAccessTime: -1, LastWriteTime: -1, ChangeTime: -1, FileAttributes: n/a15056 4:33:34.4531355 PM Tidy.exe 2804 QueryAttributeTagFile C:\Windows\System32\kernel32.dll SUCCESS Attributes: A, ReparseTag: 0x015057 4:33:34.4531458 PM Tidy.exe 2804 QueryFileInternalInformationFile C:\Windows\System32\kernel32.dll SUCCESS IndexNumber: 0x100000000a25315059 4:33:34.4531609 PM Tidy.exe 2804 QueryStandardInformationFile C:\Windows\System32\kernel32.dll SUCCESS AllocationSize: 876,544, EndOfFile: 874,496, NumberOfLinks: 2, DeletePending: False, Directory: False15063 4:33:34.4532775 PM Tidy.exe 2804 CreateFile C:\Windows\System32\locale.nls SUCCESS Desired Access: Read Data/List Directory, Execute/Traverse, Read Attributes, Disposition: Open, Options: Non-Directory File, Complete If Oplocked, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened15066 4:33:34.4535667 PM Tidy.exe 2804 SetBasicInformationFile C:\Windows\System32\locale.nls SUCCESS CreationTime: -1, LastAccessTime: -1, LastWriteTime: -1, ChangeTime: -1, FileAttributes: n/a15067 4:33:34.4535808 PM Tidy.exe 2804 QueryAttributeTagFile C:\Windows\System32\locale.nls SUCCESS Attributes: A, ReparseTag: 0x015069 4:33:34.4535914 PM Tidy.exe 2804 QueryFileInternalInformationFile C:\Windows\System32\locale.nls SUCCESS IndexNumber: 0x100000000361f15071 4:33:34.4536078 PM Tidy.exe 2804 QueryStandardInformationFile C:\Windows\System32\locale.nls SUCCESS AllocationSize: 3,661,824, EndOfFile: 3,661,664, NumberOfLinks: 2, DeletePending: False, Directory: False15080 4:33:34.4537029 PM Tidy.exe 2804 CreateFile C:\Sys\Bin\Tidy.exe SUCCESS Desired Access: Read Data/List Directory, Execute/Traverse, Read Attributes, Disposition: Open, Options: Non-Directory File, Complete If Oplocked, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened15082 4:33:34.4538619 PM Tidy.exe 2804 SetBasicInformationFile C:\Sys\Bin\Tidy.exe SUCCESS CreationTime: -1, LastAccessTime: -1, LastWriteTime: -1, ChangeTime: -1, FileAttributes: n/a15083 4:33:34.4538753 PM Tidy.exe 2804 QueryAttributeTagFile C:\Sys\Bin\Tidy.exe SUCCESS Attributes: A, ReparseTag: 0x015084 4:33:34.4538856 PM Tidy.exe 2804 QueryFileInternalInformationFile C:\Sys\Bin\Tidy.exe SUCCESS IndexNumber: 0x2000000045b3415086 4:33:34.4539014 PM Tidy.exe 2804 QueryStandardInformationFile C:\Sys\Bin\Tidy.exe SUCCESS AllocationSize: 294,912, EndOfFile: 294,912, NumberOfLinks: 1, DeletePending: False, Directory: False15091 4:33:34.4539948 PM Tidy.exe 2804 CreateFile C:\Mine\Bug\Test.htm SUCCESS Desired Access: Read Data/List Directory, Execute/Traverse, Read Attributes, Disposition: Open, Options: Non-Directory File, Complete If Oplocked, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened15093 4:33:34.4542072 PM Tidy.exe 2804 SetBasicInformationFile C:\Mine\Bug\Test.htm SUCCESS CreationTime: -1, LastAccessTime: -1, LastWriteTime: -1, ChangeTime: -1, FileAttributes: n/a15094 4:33:34.4542213 PM Tidy.exe 2804 QueryAttributeTagFile C:\Mine\Bug\Test.htm SUCCESS Attributes: A, ReparseTag: 0x015095 4:33:34.4542317 PM Tidy.exe 2804 QueryFileInternalInformationFile C:\Mine\Bug\Test.htm SUCCESS IndexNumber: 0x1700000000c50d15097 4:33:34.4542474 PM Tidy.exe 2804 QueryStandardInformationFile C:\Mine\Bug\Test.htm SUCCESS AllocationSize: 28,672, EndOfFile: 28,169, NumberOfLinks: 1, DeletePending: False, Directory: False15101 4:33:34.4543001 PM Tidy.exe 2804 CloseFile C:\Windows\System32\locale.nls SUCCESS15104 4:33:34.4544847 PM Tidy.exe 2804 CloseFile C:\Mine\Bug\Test.htm SUCCESS15131 4:33:34.4548100 PM Tidy.exe 2804 CloseFile C:\Windows\System32\ntdll.dll SUCCESS15133 4:33:34.4549847 PM Tidy.exe 2804 CloseFile C:\Windows\System32\kernel32.dll SUCCESS15136 4:33:34.4551355 PM Tidy.exe 2804 CloseFile C:\Sys\Bin\Tidy.exe SUCCESS15139 4:33:34.4553114 PM Tidy.exe 2804 CloseFile C: SUCCESS15147 4:33:34.4555922 PM Tidy.exe 2804 CreateFile C:\Mine\Bug SUCCESS Desired Access: Execute/Traverse, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened15158 4:33:34.4562171 PM Tidy.exe 2804 Load Image C:\Windows\System32\kernel32.dll SUCCESS Image Base: 0x778e0000, Image Size: 0xd800015169 4:33:34.4571793 PM Tidy.exe 2804 RegOpenKey HKLM\System\CurrentControlSet\Control\Nls\CustomLocale REPARSE Desired Access: Read15171 4:33:34.4572013 PM Tidy.exe 2804 RegOpenKey HKLM\System\CurrentControlSet\Control\Nls\CustomLocale SUCCESS Desired Access: Read15172 4:33:34.4572261 PM Tidy.exe 2804 RegQueryValue HKLM\System\CurrentControlSet\Control\Nls\CustomLocale\en-US NAME NOT FOUND Length: 53215173 4:33:34.4572432 PM Tidy.exe 2804 RegCloseKey HKLM\System\CurrentControlSet\Control\Nls\CustomLocale SUCCESS15174 4:33:34.4572545 PM Tidy.exe 2804 RegOpenKey HKLM\System\CurrentControlSet\Control\Nls\ExtendedLocale REPARSE Desired Access: Read15175 4:33:34.4572673 PM Tidy.exe 2804 RegOpenKey HKLM\System\CurrentControlSet\Control\Nls\ExtendedLocale NAME NOT FOUND Desired Access: Read15176 4:33:34.4574192 PM Tidy.exe 2804 CreateFile C:\Mine\Bug\Test.htm SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened15178 4:33:34.4577025 PM Tidy.exe 2804 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 0, Length: 4,096, Priority: Normal15181 4:33:34.4586366 PM Tidy.exe 2804 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 4,096, Length: 4,09615192 4:33:34.4594036 PM Tidy.exe 2804 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 8,192, Length: 4,09615203 4:33:34.4602507 PM Tidy.exe 2804 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 12,288, Length: 4,09615214 4:33:34.4610409 PM Tidy.exe 2804 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 16,384, Length: 4,09615225 4:33:34.4618890 PM Tidy.exe 2804 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 20,480, Length: 4,09615236 4:33:34.4627094 PM Tidy.exe 2804 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 24,576, Length: 3,59315247 4:33:34.4634463 PM Tidy.exe 2804 ReadFile C:\Mine\Bug\Test.htm END OF FILE Offset: 28,169, Length: 4,09615250 4:33:34.4636649 PM Tidy.exe 2804 CloseFile C:\Mine\Bug\Test.htm SUCCESS15321 4:33:34.4714719 PM Tidy.exe 2804 CreateFile C:\Mine\Bug\Test.htm ACCESS DENIED Desired Access: Generic Write, Read Attributes, Disposition: OverwriteIf, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: 015324 4:33:34.4717339 PM Tidy.exe 2804 QuerySecurityFile C:\Mine\Bug SUCCESS Information: Owner, Group, DACL, SACL, 0x1015464 4:33:34.4937855 PM Tidy.exe 2804 RegOpenKey HKLM\System\CurrentControlSet\Control\Session Manager REPARSE Desired Access: Query Value15465 4:33:34.4938128 PM Tidy.exe 2804 RegOpenKey HKLM\System\CurrentControlSet\Control\Session Manager SUCCESS Desired Access: Query Value15466 4:33:34.4938399 PM Tidy.exe 2804 RegQueryValue HKLM\System\CurrentControlSet\Control\Session Manager\SafeDllSearchMode NAME NOT FOUND Length: 1615468 4:33:34.4939633 PM Tidy.exe 2804 Thread Exit SUCCESS User Time: 0.0156001, Kernel Time: 0.000000015470 4:33:34.4948088 PM Tidy.exe 2804 QueryNameInformationFile C:\Sys\Bin\Tidy.exe SUCCESS Name: \Sys\Bin\Tidy.exe15471 4:33:34.4948540 PM Tidy.exe 2804 QueryNameInformationFile C:\Windows\System32\kernel32.dll SUCCESS Name: \Windows\System32\kernel32.dll15472 4:33:34.4948886 PM Tidy.exe 2804 QueryNameInformationFile C:\Windows\System32\ntdll.dll SUCCESS Name: \Windows\System32\ntdll.dll15476 4:33:34.4954452 PM Tidy.exe 2804 Process Exit SUCCESS Exit Status: 2, User Time: 0.0156001, Kernel Time: 0.015600115477 4:33:34.4954781 PM Tidy.exe 2804 CloseFile C:\Mine\Bug SUCCESS15479 4:33:34.4955525 PM Tidy.exe 2804 RegCloseKey HKLM\System\CurrentControlSet\Control\Session Manager SUCCESS23003 4:33:41.1678487 PM Tidy.exe 3396 Process Start SUCCESS Parent PID: 325223004 4:33:41.1678509 PM Tidy.exe 3396 Thread Create SUCCESS Thread ID: 275223192 4:33:41.1772011 PM Tidy.exe 3396 Load Image C:\Mine\Bug\Tidy.exe SUCCESS Image Base: 0x400000, Image Size: 0x4a00023196 4:33:41.1775872 PM Tidy.exe 3396 Load Image C:\Windows\System32\ntdll.dll SUCCESS Image Base: 0x779c0000, Image Size: 0x11e00023198 4:33:41.1776886 PM Tidy.exe 3396 CreateFile C:\Windows\Prefetch\TIDY.EXE-E4FA2511.pf NAME NOT FOUND Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: None, AllocationSize: n/a23208 4:33:41.1782410 PM Tidy.exe 3396 CreateFile C:\Mine\Bug SUCCESS Desired Access: Execute/Traverse, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened23211 4:33:41.1788606 PM Tidy.exe 3396 Load Image C:\Windows\System32\kernel32.dll SUCCESS Image Base: 0x778e0000, Image Size: 0xd800023222 4:33:41.1798080 PM Tidy.exe 3396 RegOpenKey HKLM\System\CurrentControlSet\Control\Nls\CustomLocale REPARSE Desired Access: Read23223 4:33:41.1798303 PM Tidy.exe 3396 RegOpenKey HKLM\System\CurrentControlSet\Control\Nls\CustomLocale SUCCESS Desired Access: Read23224 4:33:41.1798520 PM Tidy.exe 3396 RegQueryValue HKLM\System\CurrentControlSet\Control\Nls\CustomLocale\en-US NAME NOT FOUND Length: 53223225 4:33:41.1798633 PM Tidy.exe 3396 RegCloseKey HKLM\System\CurrentControlSet\Control\Nls\CustomLocale SUCCESS23226 4:33:41.1798745 PM Tidy.exe 3396 RegOpenKey HKLM\System\CurrentControlSet\Control\Nls\ExtendedLocale REPARSE Desired Access: Read23227 4:33:41.1798870 PM Tidy.exe 3396 RegOpenKey HKLM\System\CurrentControlSet\Control\Nls\ExtendedLocale NAME NOT FOUND Desired Access: Read23228 4:33:41.1800785 PM Tidy.exe 3396 CreateFile C:\Mine\Bug\Test.htm SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened23235 4:33:41.1803098 PM Tidy.exe 3396 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 0, Length: 4,096, Priority: Normal23239 4:33:41.1812423 PM Tidy.exe 3396 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 4,096, Length: 4,09623241 4:33:41.1819856 PM Tidy.exe 3396 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 8,192, Length: 4,09623244 4:33:41.1827574 PM Tidy.exe 3396 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 12,288, Length: 4,09623246 4:33:41.1835198 PM Tidy.exe 3396 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 16,384, Length: 4,09623248 4:33:41.1842925 PM Tidy.exe 3396 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 20,480, Length: 4,09623250 4:33:41.1850862 PM Tidy.exe 3396 ReadFile C:\Mine\Bug\Test.htm SUCCESS Offset: 24,576, Length: 3,59323252 4:33:41.1857821 PM Tidy.exe 3396 ReadFile C:\Mine\Bug\Test.htm END OF FILE Offset: 28,169, Length: 4,09623254 4:33:41.1859880 PM Tidy.exe 3396 CloseFile C:\Mine\Bug\Test.htm SUCCESS23257 4:33:41.1932774 PM Tidy.exe 3396 CreateFile C:\Mine\Bug\Test.htm SUCCESS Desired Access: Generic Write, Read Attributes, Disposition: OverwriteIf, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, AllocationSize: 0, OpenResult: Overwritten23261 4:33:41.1944038 PM Tidy.exe 3396 WriteFile C:\Mine\Bug\Test.htm SUCCESS Offset: 0, Length: 4,096, Priority: Normal23265 4:33:41.1950181 PM Tidy.exe 3396 WriteFile C:\Mine\Bug\Test.htm FAST IO DISALLOWED Offset: 4,096, Length: 4,09623266 4:33:41.1950279 PM Tidy.exe 3396 WriteFile C:\Mine\Bug\Test.htm SUCCESS Offset: 4,096, Length: 4,096, Priority: Normal23267 4:33:41.1955890 PM Tidy.exe 3396 WriteFile C:\Mine\Bug\Test.htm SUCCESS Offset: 8,192, Length: 4,09623269 4:33:41.1961204 PM Tidy.exe 3396 WriteFile C:\Mine\Bug\Test.htm SUCCESS Offset: 12,288, Length: 4,09623271 4:33:41.1966560 PM Tidy.exe 3396 WriteFile C:\Mine\Bug\Test.htm FAST IO DISALLOWED Offset: 16,384, Length: 4,09623272 4:33:41.1966642 PM Tidy.exe 3396 WriteFile C:\Mine\Bug\Test.htm SUCCESS Offset: 16,384, Length: 4,096, Priority: Normal23273 4:33:41.1972235 PM Tidy.exe 3396 WriteFile C:\Mine\Bug\Test.htm SUCCESS Offset: 20,480, Length: 4,09623276 4:33:41.1977057 PM Tidy.exe 3396 WriteFile C:\Mine\Bug\Test.htm SUCCESS Offset: 24,576, Length: 3,59323278 4:33:41.1977303 PM Tidy.exe 3396 CloseFile C:\Mine\Bug\Test.htm SUCCESS23299 4:33:41.2112918 PM Tidy.exe 3396 RegOpenKey HKLM\System\CurrentControlSet\Control\Session Manager REPARSE Desired Access: Query Value23300 4:33:41.2113148 PM Tidy.exe 3396 RegOpenKey HKLM\System\CurrentControlSet\Control\Session Manager SUCCESS Desired Access: Query Value23301 4:33:41.2113395 PM Tidy.exe 3396 RegQueryValue HKLM\System\CurrentControlSet\Control\Session Manager\SafeDllSearchMode NAME NOT FOUND Length: 1623303 4:33:41.2114661 PM Tidy.exe 3396 Thread Exit SUCCESS User Time: 0.0000000, Kernel Time: 0.000000023304 4:33:41.2122456 PM Tidy.exe 3396 QueryNameInformationFile C:\Mine\Bug\Tidy.exe SUCCESS Name: \Mine\Bug\Tidy.exe23305 4:33:41.2122880 PM Tidy.exe 3396 QueryNameInformationFile C:\Windows\System32\kernel32.dll SUCCESS Name: \Windows\System32\kernel32.dll23306 4:33:41.2123208 PM Tidy.exe 3396 QueryNameInformationFile C:\Windows\System32\ntdll.dll SUCCESS Name: \Windows\System32\ntdll.dll23309 4:33:41.2125226 PM Tidy.exe 3396 Process Exit SUCCESS Exit Status: 0, User Time: 0.0000000, Kernel Time: 0.000000023310 4:33:41.2125606 PM Tidy.exe 3396 CloseFile C:\Mine\Bug SUCCESS23312 4:33:41.2126609 PM Tidy.exe 3396 RegCloseKey HKLM\System\CurrentControlSet\Control\Session Manager SUCCESS
December 1st, 2007 10:54pm

Hi, Thank you for your information. Yes, you are right. The cause of this issue should be that the application Tidy.exe has no permission to create the file C:\Mine\Bug\Test.htm. However, we have no information about how this application works at this time. So I suggest contacting the application manufacturer to trace the behavior. Additionally, I performed researches and tests regarding this issue. The following are my testing steps: 1. I burned notepad.txt into a CD. 2. Inserted this CD into a Windows Vista machines CDROM. 3. On Windows Vista, I launched notepad.exe in D drive, edited and found that I can save the notepad file to a subfolder of C drive successfully. This subfolder was created by me. The following are some information about Windows Vista Integrity Mechanism, you can provide to the application manufacturer for reference: http://msdn2.microsoft.com/en-us/library/bb625964.aspx Thank you for your understanding and cooperation. Sincerely, Joson Zhou Microsoft Online Community Support
Free Windows Admin Tool Kit Click here and download it now
December 7th, 2007 10:03am

> Yes, you are right. The cause of this issue should be that the> application Tidy.exe has no permission to create the file> C:\Mine\Bug\Test.htm. But, both copies of the exe have the same permissions. So, it is just an inexplicable Vista bug.> However, we have no information about how this application works at> this time. So I suggest contacting the application manufacturer to> trace the behavior.If you (or Microsoft) want to do this, then go ahead. I'm not going to do it. Since an identical copy of the exe works fine and I've had similar problems with other apps on Vista, I'm not going to bother the author. Plus, the app simply rewrites a file, so I rather doubt I will learn anything from the author that will help me.> Additionally, I performed researches and tests regarding this issue.> The following are my testing steps:> > 1. I burned notepad.txt into a CD.> > 2. Inserted this CD into a Windows Vista machines CDROM.> > 3. On Windows Vista, I launched notepad.exe in D drive, edited and> found that I can save the notepad file to a subfolder of C drive> successfully. This subfolder was created by me.I'm not sure what this is supposed to show. I run lots of apps on my Vista computer that have no trouble creating or changing files. I've only run into this Vista bug a few times. Moving the file to a CD and back to the hard disk seems to resolve the problem. Sometimes the bug is that Vista thinks a file was downloaded, and so should be signed, even though the file wasn't downloaded. I thought that the file might have somehow gotten an NTFS alternate data stream, but this doesn't seem to have been the problem. Once, I had an exe that I had created that couldn't create a directory. Recompiling the app (without first erasing the exe) didn't solve the problem. However, if I erased the exe, then compiled a new one, the problem went away. Unfortunately, I can't recreate this problem now. Once I erased the exe that didn't work, new ones work.
December 7th, 2007 9:24pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics