TFS Deployment to Azure Error: cannot find ClientPerfCountersInstaller.exe TFS Deployment to Azure Error: cannot find ClientPerfCountersInstaller.exe azure azure

TFS Deployment to Azure Error: cannot find ClientPerfCountersInstaller.exe


Make sure the .exe is marked as CopyAlways so that it is copied to your \bin directory.

To do so, right click on the .exe in Visual Studio and select properties. Make sure it looks like this:

Copy Always Property setup


I had a similar issue with a dedicate cache worker role, but in my case the Microsoft.WindowsAzure.Caching folder never showed up in VisualStudio. In the end, I had to open the .csproj file for the worker role project and this:

<None Include="Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe.config">  <CopyToOutputDirectory>Always</CopyToOutputDirectory></None><None Include="Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe">  <CopyToOutputDirectory>Always</CopyToOutputDirectory></None><None Include="Microsoft.WindowsAzure.Caching\PerformanceCounters.xml">  <CopyToOutputDirectory>Always</CopyToOutputDirectory></None>

I put that within the same <ItemGroup> tag as the app.config file, and now it's deploying as it should.