Hi All,
I generate very simple bot (using C# template which I downloaded from http://aka.ms/bf-bc-vstemplate), but I'm having issues trying to get the emulator recognize my bot (I use 3.5.23 version of emulator).
Log from emulator:
[20:42:16] -> POST Refresh access token failed with status code: 400
[20:42:25] -> POST Refresh access token failed with status code: 400
[20:42:27] -> POST Refresh access token failed with status code: 400
Any idea what鈥檚 wrong?
Hi @andrzejsobczak, sorry you're having this problem. Can you please check your system clock date and time. The authentication scheme we use requires the timestamp be accurate within 5 minutes.
Hi Eric,
Many thanks for quick replay, but I'm afraid that my system clock date and time is OK.
Please see screenshot.

Any other ideas?
Best Regards,
Andrzej
Ok. Just to double-check another way, does the time on your computer match the time on your phone?
Assuming they do match, the next thing to check is your bot's appId and password. Is your bot configured with an appId and password? Here's an auth troubleshooting guide that you might find helpful:
https://docs.botframework.com/en-us/support/troubleshooting-bot-framework-authentication/
Hi Eric,
It's amazing your Time2Respond. Many thanks for your involvement.
Time at my phone is the same as on my computer.
Yes, my bot configured with an appId and password (please see screenshot). But I checked 3-times correctness of them during type them on emulator.

Any other ideas?
Best Regards,
Andrzej
@andrzejsobczak ,
Instead of downloading the template, please check by using the following nuget package:
https://www.nuget.org/packages/Microsoft.Bot.Builder/
See this thread for more details:
https://github.com/Microsoft/BotFramework-Emulator/issues/51
@andrzejsobczak When trying to connect without MSA, please make sure you've cleared out the appId and password from the bot's configuration in the emulator, in addition to removing them from the bot's web.config. I'm referring to these fields:

Please make sure those two fields are empty before connecting.
Hi Abhishek,
Many thanks for your information.
I have one question: before I import Microsoft.Bot.Builder (using Package Manager Console at my Visual Studio) should I create an empty Project Template for C#? Or in other words: should I open any project at VS before I import Microsoft.Bot.Builder ?
Best Regards,
Andrzej
@andrzejsobczak
Create an empty project with Bot template(or use existing bot project) and update the bot builder version from Visual studio NuGet package to latest version. Try to test it with latest bot emulator (https://docs.botframework.com/en-us/tools/bot-framework-emulator/)
@abhishan many thanks for your help. It works now.
I will close this issue.
@Kothakapu many thanks for your help. It works now.
I will close this issue.
Most helpful comment
@andrzejsobczak When trying to connect without MSA, please make sure you've cleared out the appId and password from the bot's configuration in the emulator, in addition to removing them from the bot's web.config. I'm referring to these fields:

Please make sure those two fields are empty before connecting.