TFS Build Controller : “Could not load file or assembly 'Microsoft.WindowsAzure.StorageClient, Version=1.7.0.0”

↘锁芯ラ 提交于 2020-01-23 00:42:48

问题


As you know that your TFS Preivew does not support for Azure SDK 1.8 so We are using On-permises TFS build controller to build our project.

During Azure Continous Inegration deployment build we are getting this error

========================================
Exception Message: Could not load file or assembly 'Microsoft.WindowsAzure.StorageClient, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 
========================================

We have updated Storage library to version 2.0 using nuget but still we are getting this error.


回答1:


I received this solution from TFS support. THis isn't working since upgrading to TFS 2013 though.

To fix the assembly loading error, you need to copy

"C:\Program Files\Microsoft SDKs\Windows Azure.NET SDK\2012-06\bin\Microsoft.WindowsAzure.StorageClient.dll"

To

C:\Program Files\Microsoft Team Foundation Server 12.0\Tools

On the build machine and restart the service.




回答2:


Turn on Detailed or Diagnostic Logging Verbosity to determine if Microsoft.WindowsAzure.StorageClient or one of it's dependents are missing. If you are able to compile locally, you could have the assembly installed in your local GAC but not on the build server.



来源:https://stackoverflow.com/questions/13710916/tfs-build-controller-could-not-load-file-or-assembly-microsoft-windowsazure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!