Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Deployment Error: cannot find ClientPerfCountersInstaller.exe

I recently tried setting up the Preview Cache for Azure on an existing site and deployment, which I had to abort due to errors. However since then I now get the following error when I try and deploy to Azure...

Cannot find file named approot\bin\Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe

This file does exist on disk, presuming approot is the base folder for my ASP project.

Any ideas and help greatly appreciated, am banging my head against the wall currently!

like image 901
Jezbers Avatar asked Feb 19 '13 18:02

Jezbers


2 Answers

Found the solution. The ServiceDefinition.csdef file had a new startup task that had been created somehow during the cache setup process. Removing this superfluous task resolved the issue and I cannot see any down side or negative impact.

Commented out line is shown below...

<Startup priority="-2">
  <!--<Task commandLine="Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe install" executionContext="elevated" taskType="simple" />-->
</Startup>
like image 106
Jezbers Avatar answered Sep 28 '22 19:09

Jezbers


In my case the file was created by the Azure SDK tools, but TFVC did not check-in the .exe.

After explicitly adding the missing .exe the build runs successfully.

like image 44
Bart Verkoeijen Avatar answered Sep 28 '22 18:09

Bart Verkoeijen