microsoft-graph-comms-samples icon indicating copy to clipboard operation
microsoft-graph-comms-samples copied to clipboard

Echobot v2 - run locally error

Open jamil-z opened this issue 1 year ago • 2 comments

Hi, I wanted to know how I can run the echobot v2 locally, as there used to be a local configuration file where I could add keys and test quickly, but that no longer exists.

What I do is clone the project and try to run it in Visual Studio as an administrator.

Note that I have already deployed it using steps 1, 2, and 3 in Azure, but for testing purposes, I want to run it locally.

image image

jamil-z avatar Oct 04 '24 20:10 jamil-z

Hi guy, I am trying to run EchoBot locally also, can i contact with you and discuss about this topic

tranguyendinh avatar Dec 12 '24 12:12 tranguyendinh

When running the sample, you are not providing the necessary configuration to the application. Given you didn't change any code, we are looking at the following line that's failing:

https://github.com/microsoftgraph/microsoft-graph-comms-samples/blob/87aa1b2fca82b8373bc080d4e8552f02448adfa9/Samples/PublicSamples/EchoBot/src/EchoBot/BotHost.cs#L86

appSettings must the culprit. It's initialized further up the file by loading the AppSettings section from the configuration

https://github.com/microsoftgraph/microsoft-graph-comms-samples/blob/87aa1b2fca82b8373bc080d4e8552f02448adfa9/Samples/PublicSamples/EchoBot/src/EchoBot/BotHost.cs#L66-L67

Hope this helps.

InDieTasten avatar Dec 15 '24 12:12 InDieTasten