Publish gets stuck on 'Copying application to image store'
ukcoderj opened this issue · comments
In Visual Studio 2019 Community, right click on Application > Publish and attempting to publish to Azure gets stuck. This happens for my own application, but I can't even publish the sample application
Expected Behavior
Publish publishes to Azure
Current Behavior
Gets stuck at copying application. Can't even publish the sample application.
>Started executing script 'Deploy-FabricApplication.ps1'.
3>powershell -NonInteractive -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -Command ". 'C:\Git\service-fabric-dotnet-quickstart\Voting\Scripts\Deploy-FabricApplication.ps1' -ApplicationPackagePath 'C:\Git\service-fabric-dotnet-quickstart\Voting\pkg\Debug' -PublishProfileFile 'C:\Git\service-fabric-dotnet-quickstart\Voting\PublishProfiles\Cloud.xml' -DeployOnly:$false -ApplicationParameter:@{} -UnregisterUnusedApplicationVersionsAfterUpgrade $false -OverrideUpgradeBehavior 'None' -OverwriteBehavior 'SameAppTypeAndVersion' -SkipPackageValidation:$false -ErrorAction Stop"
3>Copying application to image store...
Steps to Reproduce
- Download Git Sample
- Run locally (all good)
- Try to publish to Azure via Visual Studio 2019 Community (latest version)
This seems very similar to issue here and here seen seen previously, but I have tried resetting and removing the local cluster and it doesn't seem to fix it.
Context (Environment)
Can't publish to Azure (critical)
Service Fabric Runtime and SDK Version :
SF: 6.5.676.9590
SDK: 3.4.676.9590 (later upgraded to 4.0.457.9590)
Operating System : Win 10
Cluster Size : 3
Possible Workaround
Have spent 4 hours trying to find a work around. Cannot find one.
Have managed to get up and running again. The fix was:
- Uninstalled Visual Studio and Service Fabric SDK
- Re-installed VS2019 and SF to versions as shown below:
Service Fabric: 7.0.457.9590
Service Fabric SDK: 4.0.457.9590