The file provided is not a valid service package. Detailed error code: InvalidOperationException in azure

后端 未结 3 461
深忆病人
深忆病人 2021-01-26 03:59

We have to update web.config entry of Azure package file which got deployed into production environment. We dowloaded cspkg file and unzipped the content and modified our web.co

相关标签:
3条回答
  • 2021-01-26 04:38

    Use cspack.exe to regenerate the package. Use the below command.

    cspack.exe "path_to_csdef_File\ServiceDefinition.csdef" /role:<RoleName>;<path_to_Binaries\approot> /out:D:\NewPackage.cspkg /rolePropertiesFile:<rolename>;<path_to_entry_point_file\entrypoint.txt> 
    

    Detailed steps to regenerate package are mentioned in this post.

    https://amoghnatu.net/2016/09/08/recreate-azure-cloud-service-package/

    0 讨论(0)
  • 2021-01-26 04:43

    I fixed my issue my self, followed the instruction in msdn. I unzipped it and did packaging using cspack tool

    0 讨论(0)
  • 2021-01-26 04:49

    'Tampering' with the cspkg file is not supported . Try re-creating a new cspkg file using CSPack.

    0 讨论(0)
提交回复
热议问题