#StackBounty: #c# #.net #visual-studio-2017 #azure-service-fabric Code is missing for service MyServicePkg

Bounty: 500

I am attempting to upgrade my application like so:

enter image description here

It fails with the following error:

enter image description here

Error details:

2>Test-ServiceFabricApplicationPackage : The BuildLayout of the application in
2>C:UsersmeAppDataLocalTempTestApplicationPackage_22058952934214myc2vpp.bdqDebug is invalid. Code is
2>missing for service MyServicePkg.
2>At C:Program FilesMicrosoft SDKsService
2>FabricToolsPSModuleServiceFabricSDKPublish-UpgradedServiceFabricApplication.ps1:135 char:38
2>+ … nSuccess = (Test-ServiceFabricApplicationPackage $AppPkgPathToUse -Im …
2>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2> + CategoryInfo : InvalidOperation: (:) [Test-ServiceFabricApplicationPackage], FabricImageBuilderValidati
2> onException
2> + FullyQualifiedErrorId : TestApplicationPackageErrorId,Microsoft.ServiceFabric.Powershell.TestApplicationPackage
2>Finished executing script ‘Deploy-FabricApplication.ps1’.
2>Time elapsed: 00:00:40.4035177
2>The PowerShell script failed to execute.
========== Build: 1 succeeded, 0 failed, 46 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

Here are my properties for that specific project:

enter image description here

What am I doing wrong? What does this exception mean?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.