Wednesday, December 15, 2010

Unable to load DLL 'FileTracker.dll' error in Visual Studio 2010

I got this error, when I tried to build a project in Visual Studio 2010 (professional).
System.DllNotFoundException: Unable to load DLL 'FileTracker.dll': The specified module could not be found.
This build error occurred only in projects in which resource files were used.

Resolution:
1) Open "Microsoft.Common.targets" file located at "C:\Windows\Microsoft.NET\Framework\v4.0.30128".
2) Locate the following line "<TrackFileAccess Condition="'$(TrackFileAccess)' == ''">true</TrackFileAccess>"
3) Change the value to "false"
4) Do the same for the file found in "Framework64" folder also.

Note:
If we have to get rid of this problem in all the machines where it would be deployed, we can edit the ".csproj" file of our project, to include the following lines:


<PropertyGroup>
      <TrackFileAccess>false</TrackFileAccess>
</PropertyGroup>



Make sure that this is at the the bottom of the file just before the closing project tag (</Project>).
Doing so, will however slow down the build time, during deployment.


5 comments:

  1. Hey Karthik, Your tip helped me get rid of the problem I started getting after uninstalling web developer express and reinstalling vs 2010. thanks a lot.

    ReplyDelete
  2. Hi Karthik,

    The tip was of grea help in resovling the issues with builduing UI Applications

    ReplyDelete
  3. Thanks a Lot....

    ReplyDelete
  4. This helped me , Thanks karthik . spent almost 4Hrs before i found this article.

    ReplyDelete
  5. Thank you, Karthik! This article helped me!

    ReplyDelete