botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Skype channel in Error Status

Open galazzo opened this issue 10 years ago • 9 comments

Using Microsoft Bot Framework I started to use GetBotPerUserInConversationData

Everything works great with webchat and Facebook channels but if message come from Skype I get the following exception:

'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.Bot.Connector.dll

I get also amessage about string.this[int], arguments not valid for best matching overlod method.

Here the very simple code:

var state = message.GetBotPerUserInConversationData("State");

My class is Serializable

[Serializable] public class ConversationState { public ConversationState() {

By the way, why the same code works great with all channels except Skype?

Sebastiano

galazzo avatar May 08 '16 20:05 galazzo

What type are you setting in your call to message.BotPerUserInConversationData = ???. If this is set to a string any subsequent call to message.GetBotPerUserInConversationData("State") will result in that RuntimeBinderException. To avoid this exception make sure you set BotPerUserInConversationData to a valid object type.

craigjensen avatar May 19 '16 17:05 craigjensen

Skype channel in Error Status same problem any solution please image

inornos avatar May 24 '16 13:05 inornos

Please add your botId and we'll investigate

craigjensen avatar May 24 '16 16:05 craigjensen

Where and how to add botid

inornos avatar May 25 '16 04:05 inornos

i have added my bot id and app secret in web.config but still not working for me please help me

inornos avatar May 25 '16 08:05 inornos

I'm using Microsoft Bot Framework Emulator and its working with my online API, its responding me right but in Skype bot not working it not responding correctly its giving me error

image

problem

image

inornos avatar May 25 '16 08:05 inornos

image Looks like it's working now. Would you mind sharing what the fix was so others might benefit?

craigjensen avatar May 25 '16 15:05 craigjensen

In my Web.config I'm using Bot Registration App ID And App Secret There is the my problem of the getting Forbidden Error So don't use Bot Registration App ID and App Secret image

To Set Web.config take App ID And App Secret from this section given below in image image

inornos avatar May 26 '16 04:05 inornos

Closing this issue. Thanks for sharing your fix @inornos! @galazzo - please open a new issue for further discussion if necessary.

v-thgratMSGit avatar Jul 12 '16 21:07 v-thgratMSGit