Ashish
Ashish

Reputation: 114

Can't enable direct line app service extension in azure bot service

I want to develop .net core desktop client application to connect bot service direct line. for that I am following this document. But I couldn't make it work. Here is way to confirm that it has been properly configured. the web page should show output like below in case everything went fine.

{"v":"123","k":true,"ib":true,"ob":true,"initialized":true}

but in my case I am getting output like below:

{"v":"1.0.0.0.55fa54091a1e3b168628d4000ee2b06a88bbc2ac","k":true,"ib":false,"ob":false,"initialized":true}

where "ib" and "ob" values are false for some reason. I found this and this issue reported on github but there is no conclusion.

any suggestion is greatly appreciated. Thanks.

Upvotes: 0

Views: 729

Answers (2)

xanril
xanril

Reputation: 1

I followed Microsoft Docs on how to setup the bot project: https://learn.microsoft.com/en-us/azure/bot-service/bot-service-channel-directline-extension-net-bot?view=azure-bot-service-4.0

I did a simple echo bot project and followed the sample code in Startup.cs Configure method.

Last thing I did is to resolve an issue HTTP 500.34 when I access the /.bot as described.

You need to add: <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel> in .csproj after <TargetFramework>netcoreapp3.1</TargetFramework>

Upvotes: 0

Ashish
Ashish

Reputation: 114

Troubleshooting guid has been added to the document. verified steps below and getting proper results now:

  1. Double check the code for using named pipes has been added to the bot.
  2. Confirm the bot is able to start up and run at all. Useful tools are Test in WebChat, connecting an additional channel, remote debugging, or logging.
  3. Restart the entire Azure App Service the bot is hosted within, to ensure a clean start up of all processes.

enter image description here

Upvotes: 1

Related Questions