tiechui

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Problem:

The "GenerateResource" task failed

 

unexpectedly.
System.DllNotFoundException: Unable to load DLL

'FileTracker.dll': The specified module could not be

found. (Exception from HRESULT: 0x8007007E)
   at

Microsoft.Build.Shared.NativeMethodsShared.InprocTracking

.StartTrackingContextWithRoot(String

intermediateDirectory, String taskName, String

rootMarker)
   at

Microsoft.Build.Utilities.FileTracker.StartTrackingContex

tWithRoot(String intermediateDirectory, String taskName,

String rootMarkerResponseFile)
   at Microsoft.Build.Tasks.GenerateResource.Execute()
   at

Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build

.BackEnd.ITaskExecutionHost.Execute()
   at

Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTa

sk(ITaskExecutionHost taskExecutionHost,

TaskLoggingContext taskLoggingContext, TaskHost taskHost,

ItemBucket bucket, TaskExecutionMode howToExecuteTask,

Boolean& taskResult)

 

Answer:

D:\Windows\Microsoft.NET\Framework\v4.0.xx

if more than one "v4.0.xx"

keep one, and rename other like "old_v4.0.xx"

test, you can pass

 

[COPY]

I uninstalled VS 2010 Beta 2 then installed VS2010 RC then found out that Silverlight 4 is not supported in the RC version of VS, so I reinstalled VS 2010 Beta 2 and got the compile error. I looked in "C:\Windows\Microsoft.NET\Framework\" directory and had three folders refering to "v4.0.xx". I followed the work around on just renaming all the "v4.0.xx" folders to "Old_v4.0.xx" and left the folder "v4.0.21006" as is. This solved my problem.

posted on 2010-12-29 09:23  tiechui  阅读(1442)  评论(0编辑  收藏  举报