question

LuciaCasucci-9483 avatar image
0 Votes"
LuciaCasucci-9483 asked romungi-MSFT commented

Expire a conversation bot module from MS not working in App service

Hi!

I was trying to make my bot conversation expire after 10 minutes like shown in this document https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-expire-conversation?view=azure-bot-service-4.0&tabs=csharp

However, when I add the following thing :

protected readonly IStatePropertyAccessor<DateTime> LastAccessedTimeProperty


I get an error once I try to update the bot file into the App service.

What I am not understanding is that a similar string ( protected readonly IStatePropertyAccessor<DialogState> DialogStateProperty; ) worked just fine.

azure-cognitive-servicesazure-bot-service
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@LuciaCasucci-9483 What is the error seen while updating the app service? Are you able to run the bot locally after the update?

0 Votes 0 ·

I am now running the bot locally on .NET. and VS since on app service I could not really have error explenation

I was able to understand why the DialogState I posted above was giving an error.
Apparently you need to type System.DialogState not just DialogState ..

ANYWAYS NOW I am having another issue due to some another missing reference that is harder to identify since it is specific to the bot framework.

Attaching below for reference, and I took the code straight from the MS documentation - https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-expire-conversation?view=azure-bot-service-4.0&tabs=csharp

The error is for Both IConfiguration and Logger field in the QnA class missing a directory or assembly reference

Not sure how to proceed @romungi-MSFT

128877-image.png


0 Votes 0 ·
image.png (216.9 KiB)

I think you are missing the using directives for these.

 using Microsoft.Extensions.Configuration;
 using Microsoft.Extensions.Logging;


0 Votes 0 ·
Show more comments

0 Answers