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

后端 未结 3 475
深忆病人
深忆病人 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条回答
  •  旧时难觅i
    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:; /out:D:\NewPackage.cspkg /rolePropertiesFile:; 
    

    Detailed steps to regenerate package are mentioned in this post.

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

提交回复
热议问题