VS2010 (.net framework 4.0) and XP SP3 Compile Error

When you compile the application you get

Error 5 The “GenerateResource” task failed unexpectedly.

System.DllNotFoundException: Unable to load DLL ‘FileTracker.dll’: A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)


In C:\WINDOWS\Microsoft.NET\Framework\v4.0.30128 locate Microsoft.Common.targets open in notepad. Locate <GenerateResource tag, remove the attributes TrackFileAccess=”$(TrackFileAccess)” TrackerLogDirectory=”$(TrackerLogDirectory)”, save the file, Close and Re Open Visual Studio