Share via

QnA Bot C# deploy.cmd error message Failed exitCode=1

Martin Peter 1 Reputation point
2021-11-19T04:19:52.29+00:00

Hello

Beginner here.
I am trying to apply changes on my QnA Bot via command deploy.cmd , C# , when I use console in App service editor I got this message :

C:\home\site\wwwroot\bot\QnABotAllFeatures.runtimeconfig.json, C:\home\site\wwwroot\bot\bin\Release\netcoreapp3.1\QnABotAllFeatures.runtimeconfig.json. [C:\home\site\wwwroot\bot\QnABotAllFeatures.csproj] Failed exitCode=1, command=dotnet publish "bot\QnABotAllFeatures.csproj" --output "C:\local\Temp\___deployTemp27487" --configuration Release An error has occurred during web site deployment.

If I use console via my app service , it doesn't do anything , it will just ignore the command, screenshot attached.

Please help. 150818-console.jpg

I didn't edit the QnABotAllFeatures.csproj file , I changed only default message in QnAMakerBaseDialog.cs

It worked last time. What could go wrong ?

Please help.

Thank you

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Ajay Kumar N 28,266 Reputation points Microsoft Employee Moderator
    2021-12-01T13:21:41.14+00:00

    MartinPeter-2089, Firstly, please accept my apologies for the delayed response.

    To assist you better, I would like to understand a few more details, what specific sample are you leveraging? and, what config changes are you attempting perform?
    Please do provide more details about your setup and scenario.

    On App Service - deploy.cmd. This is the batch script that will contain all the steps for Kudu to deploy the App. deploy.cmd (which is the default for Kudu deployments).

    .deployment. This is the entry point for Kudu to detect that there is a custom deployment script. This will point to the correct batch/bash script.

    You may follow the steps outlined in this doc, to update your initialization code to load the service information for your knowledge base.

    Just to add more clarity on this:

    On App service, the Kudu console (https://<yourwebpp-name>.scm.azurewebsites.net/) - is the engine behind a number of features in Azure App Service related to source control based deployment, and other deployment methods.

    Kindly see this doc for more information : Customizing-deployments

    Please let us know, I'll follow-up with you further.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.