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)

Workaround

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

Advertisements

One thought on “VS2010 (.net framework 4.0) and XP SP3 Compile Error

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s