Azure devops Clickonce package task not working in my release pipeline with virtualmachine as environment. But worked in build pipeline where azure pipelines is my agent. I used same steps as mentioned for clickonce task. Help me how to solve #56
[debug]Exit code 2148734720 received from tool 'C:\azagent\A1_work_tasks\clickonce_540cd748-7752-4245-936d-d18d292a1000\1.1.1\bin\ClickOnce.exe'
[debug]STDIO streams have closed for tool 'C:\azagent\A1_work_tasks\clickonce_540cd748-7752-4245-936d-d18d292a1000\1.1.1\bin\ClickOnce.exe'
[debug]task result: Failed
[error]The process 'C:\azagent\A1_work_tasks\clickonce_540cd748-7752-4245-936d-d18d292a1000\1.1.1\bin\ClickOnce.exe' failed with exit code 2148734720
[debug]Processed: ##vso[task.issue type=error;]The process 'C:\azagent\A1_work_tasks\clickonce_540cd748-7752-4245-936d-d18d292a1000\1.1.1\bin\ClickOnce.exe' failed with exit code 2148734720
[debug]Processed: ##vso[task.complete result=Failed;]The process 'C:\azagent\A1_work_tasks\clickonce_540cd748-7752-4245-936d-d18d292a1000\1.1.1\bin\ClickOnce.exe' failed with exit code 2148734720
BUT in build it worked. where we have used Azure pipelines and agents. Please help me in this
I have created Build pipeline for .net in azure dev
In Windows Virtual machine this will deploy. using environment section. steps:
task: DownloadBuildArtifacts@1 inputs: buildType: 'specific' project: '6dec2f04-2e6f-4691-b194-a9d1741f8e9a' pipeline: '484' buildVersionToDownload: 'latest' downloadType: 'specific' downloadPath: '$(System.ArtifactsDirectory)'
task: clickonce@1 inputs: source: '$(System.ArtifactsDirectory)\ac_drop\bin\Release' target: '$(System.ArtifactsDirectory)\ac_drop\bin\Release\publish' product: 'Apex Corp' version: '${{parameters.version}}' publisher: 'Logistics' launchMode: 'start' deploymentUrl: 'https://apps.com/Corporate' targetFramework: 'net462' prerequisitesMode: 'vendor' prerequisite1: '.NETFramework,Version=v4.6.2
Getting error like C:\azagent\A1_work_tasks\clickonce_540cd748-7752-4245-936d-d18d292a1000\1.1.1\bin\ClickOnce.exe create --source C:\azagent\A1_work\1\a\ac_drop\bin\Release --target C:\azagent\A1_work\1\a\ac_drop\bin\Release\publish --deploymentUrl https://apps.com/Corporate --product "Apex Corp" --version 5.6.5.0 --publisher "Logistics" --deploymentPage publish.htm --prerequisitesLocation vendor --prerequisites .NETFramework,Version=v4.6.2
[debug]Exit code 2148734720 received from tool 'C:\azagent\A1_work_tasks\clickonce_540cd748-7752-4245-936d-d18d292a1000\1.1.1\bin\ClickOnce.exe'
[debug]STDIO streams have closed for tool 'C:\azagent\A1_work_tasks\clickonce_540cd748-7752-4245-936d-d18d292a1000\1.1.1\bin\ClickOnce.exe'
[debug]task result: Failed
[error]The process 'C:\azagent\A1_work_tasks\clickonce_540cd748-7752-4245-936d-d18d292a1000\1.1.1\bin\ClickOnce.exe' failed with exit code 2148734720
[debug]Processed: ##vso[task.issue type=error;]The process 'C:\azagent\A1_work_tasks\clickonce_540cd748-7752-4245-936d-d18d292a1000\1.1.1\bin\ClickOnce.exe' failed with exit code 2148734720
[debug]Processed: ##vso[task.complete result=Failed;]The process 'C:\azagent\A1_work_tasks\clickonce_540cd748-7752-4245-936d-d18d292a1000\1.1.1\bin\ClickOnce.exe' failed with exit code 2148734720
BUT in build it worked. where we have used Azure pipelines and agents. Please help me in this