V3 bot getting 500 error- .net
facing this issue in the sample code..
Can you provide more information such as which sample code is throwing error and stack trace of the error?
public async Task
// return our reply to the user
Activity reply = activity.CreateReply($"You sent {activity.Text} which was {length} characters");
await connector.Conversations.ReplyToActivityAsync(reply);
}
else
{
HandleSystemMessage(activity);
}
var response = Request.CreateResponse(HttpStatusCode.OK);
return response;
}
getting stack trace error on
await connector.Conversations.ReplyToActivityAsync(reply);
Can you post the stack trace of the error? I assume you are testing though emulator.
yes i running this in emulator version 3.0.0.54.. >
while call stack I am getting this
Bot Application1.dll!Bot_Application9.MessagesController.Post(Microsoft.Bot.Connector.Activity activity) Line 30
Your stack trace doesn't seem to be complete. Does your web.config have the correct settings?
http://docs.botframework.com/en-us/support/upgrade-to-v3/#updates-to-the-auth-properties-in-webconfig
web.config setting..tell me if something wrong in it...
<appSettings>
<!-- update these with your BotId, Microsoft App Id and your Microsoft App Password-->
<add key="BotId" value="YourBotId" />
<add key="MicrosoftAppId" value="" />
<add key="MicrosoftAppPassword" value="" />