System.ComponentModel.Win32Exception: The system cannot find the file specified

Mar 25, 2009 at 10:49 AM
Hi,

I have downloaded this comparision tool, which looks really  helpful for developers, but when I try to compare two files or to clipboard option, I always get the "Please check logs. The system cannot find the file specified" error, after placing the "VisualStudioComparisonTools.dll.log4net" in my IDE folder I got above error, the complete error log is as below:

Any help will be much appriciated.

thanks,
Nilesh

Logfile:

2009-03-25 09:46:20,984 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Start
2009-03-25 09:46:21,015 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Command found (VisualStudioComparisonTools.Connect.CompareFilesSolutionExplorer)
2009-03-25 09:46:21,015 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Saving all documents
2009-03-25 09:46:21,015 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Saved all documents
2009-03-25 09:46:21,015 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Document1 found. Comparing C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\MeetingViewConnector.cs to clipboard
2009-03-25 09:46:21,015 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Document2 found. Comparing C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\latestWorking.cs to clipboard
2009-03-25 09:46:21,015 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Starting comparison process
2009-03-25 09:46:21,015 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - End handled=True
2009-03-25 09:46:21,015  INFO [3136] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - Start
2009-03-25 09:46:21,031 DEBUG [3136] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - Read temp files. File1=C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\MeetingViewConnector.cs file2=C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\latestWorking.cs
2009-03-25 09:46:21,031 DEBUG [3136] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - Using real file1 for comparison
2009-03-25 09:46:21,031 DEBUG [3136] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - Using real file2 for comparison
2009-03-25 09:46:21,031 DEBUG [3136] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - Using arguments: "/ub   "C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\MeetingViewConnector.cs" "C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\latestWorking.cs"
2009-03-25 09:46:21,031 ERROR [3136] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - System.ComponentModel.Win32Exception: The system cannot find the file specified
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at VisualStudioComparisonTools.ComparisonWorkerProcess.OpenComparisonProcess()
2009-03-25 09:46:24,328  INFO [3136] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - End
2009-03-25 09:46:29,640 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Start
2009-03-25 09:46:29,656 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Command found (VisualStudioComparisonTools.Connect.CompareFilesSolutionExplorer)
2009-03-25 09:46:29,656 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Saving all documents
2009-03-25 09:46:29,656 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Saved all documents
2009-03-25 09:46:29,656 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Document1 found. Comparing C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\MeetingViewConnector.cs to clipboard
2009-03-25 09:46:29,656 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Document2 found. Comparing C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\latestWorking.cs to clipboard
2009-03-25 09:46:29,656 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - Starting comparison process
2009-03-25 09:46:29,656 DEBUG [4092] VisualStudioComparisonTools.Connect [(null)] - End handled=True
2009-03-25 09:46:29,656  INFO [2300] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - Start
2009-03-25 09:46:29,656 DEBUG [2300] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - Read temp files. File1=C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\MeetingViewConnector.cs file2=C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\latestWorking.cs
2009-03-25 09:46:29,656 DEBUG [2300] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - Using real file1 for comparison
2009-03-25 09:46:29,656 DEBUG [2300] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - Using real file2 for comparison
2009-03-25 09:46:29,656 DEBUG [2300] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - Using arguments: "/ub   "C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\MeetingViewConnector.cs" "C:\Projects\Search\WebParts\MeetingView\ClassLibrary1\ClassLibrary1\latestWorking.cs""
2009-03-25 09:46:29,671 ERROR [2300] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - System.ComponentModel.Win32Exception: The system cannot find the file specified
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at VisualStudioComparisonTools.ComparisonWorkerProcess.OpenComparisonProcess()
2009-03-25 09:46:33,703  INFO [2300] VisualStudioComparisonTools.ComparisonWorkerProcess [(null)] - End
Coordinator
Jul 24, 2010 at 10:19 PM

This is coming more than a year too late, but looks like the WinMergeU.exe isn't in C:\Program Files\WinMerge\WinMergeU.exe on your machine. The new version allows you to configure the place of the comparison tool now.