Waiting for bot to be ready after deployment
I also faced this issue and this is how I solved it.
Changed my publish settings to have
Remove additional files at destination
checked. This is an important step because when you provisioned a new web app bot, it will already have some files in the location. So when you publish your code, it will be placed along with the code files which already exists. You can also test it by navigating to the/api/messages
url. If this gives you error, then this is most likely the case.I also updated all the NuGet dependencies.
The other thing that caused me a bit of issue was the App Password. The app password in your web.config should match the one which is already generated for your BOT. Do not create a new password from the bot management page. If you did that then make sure that you change/update the password in web app bot application settings and also in the web.config file. When you host the bot, by default it will use the
Application Id
andApplication Password
which were generated automatically. You can see these values in theWeb App Bot
service type which is under the sectionApp Service Settings>Application Settings
. Scroll down to the bottom and you will see these two settings. Copy the values ofApplication Id
andApplication Password
and update them in the Web.config file.
Hope this help!
What fixed it for me was changing Destination URL in Publish Settings to https. For some reason default is http.