0

I have deployed my bot on a remote windows server 2012r2 and when i try to connect with it using emulator, it gives me the error Refresh access token failed with status code: 401

I have followed all the steps discussed here and used a web deploy method to deploy. how to publish bot framework c-sharp code to windows server 2012r2

Ehsan Ul Haq
  • 209
  • 3
  • 12
  • 401 indicates an authentication failure. Have you got a) the bot Id and password conrrectly configured on the server and emulator b) configured ngrok and c) checked you can access the bot via HTTP? – stuartd Jun 27 '17 at 11:53
  • And also make sure you read https://stackoverflow.com/questions/40888489/bot-framework-without-azure-possible – Ezequiel Jadib Jun 27 '17 at 12:17
  • @startd yes, it was because of incorrect passwords. Note: do not copy passwords directly from emulator – Ehsan Ul Haq Jun 28 '17 at 12:37

1 Answers1

2

I figured it out, it was because of incorrect password. I was copying it directly from the emulator. So yes, after putting correct ID and Password it went away. Thanks

Ehsan Ul Haq
  • 209
  • 3
  • 12
  • Hi @Ehsan! Seems you've found answer of your question. If you are sure that this is the correct answer then don't hesitate to mark it as answered to help others find this solution quickly. P.S. https://stackoverflow.blog/2011/07/01/its-ok-to-ask-and-answer-your-own-questions/ – Just Shadow Jun 29 '17 at 13:13