Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on accepting the chat request on the aggregation channel #50

Open
abhishekkant opened this issue Apr 16, 2019 · 11 comments
Open

Error on accepting the chat request on the aggregation channel #50

abhishekkant opened this issue Apr 16, 2019 · 11 comments

Comments

@abhishekkant
Copy link

Hi

I have taken the default implementation for human handoff from here. It was working fine.

Then I added simple dialogs to the bot project. Now, when i attempt to use human handoff, I receive the following error:
Method not found: ‘Void Microsoft.Bot.Schema.ConversationAccount…ctor(System.Nullable`1, System.String, System.String, System.String, System.String, System.String)’.

The above error occurs after the user from web chat requests for help and the request arrives at the aggregate channel (in our case the emulator). The error comes up when the "Accept" button on the aggregate channel is clicked.

What could be the issue?

Some dependencies:
Bot Builder Framework: 4.3.2
Bot Message Routing: 2.0.2-alpha
ASPNETCore: 2.2.0

Cheers
Abhishek Kant

@mailforsachin
Copy link

mailforsachin commented Jun 10, 2019

@tompaana

I am receiving the same error.

Sorry, it looks like something went wrong: Method not found: 'Void Microsoft.Bot.Schema.ConversationAccount..ctor(System.Nullable`1, System.String, System.String, System.String, System.String, System.String)'.

I have tried it with webchat and slack and webchat and msteams but it is still the same.

@tompaana
Copy link
Owner

tompaana commented Jun 10, 2019

This problem is caused by the mismatch of the Bot Builder version - the Nuget package of Bot Message Router uses an older version. I will try to update the package soon-ish, but in the meanwhile, here's what you can do:

  1. Remove the Bot Message Routing Nuget package from the solution
  2. Clone or copy the Bot Message Routing project (https://github.com/tompaana/bot-message-routing)
  3. Add the Bot Message Routing project into the solution
  4. Update the Bot Builder version used by the Bot Message Routing project

That will fix the method not found exception.

@mailforsachin
Copy link

@tompaana

I am missing something. So I used Nuget package manager to remove the Routing package form the solution (Step 1) then cloned the sample to the same directory (2) ... added the bot msg routing project by importing the CSPROJ file. and then updated the bot builder libraries

Removed

It is not able to find the assembly
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'ConversationReference' could not be found (are you missing a using directive or an assembly reference?) BotMessageRouting C:\Users\124708\Desktop\intermediator-bot-sample\bot-message-routing\BotMessageRouting\MessageRouting\DataStore\RoutingDataManager.cs 152 Active

@mailforsachin
Copy link

@tompaana Can you please check the snapshots I send and let us know what we need to do to fix this? Appreciate your help.

@mailforsachin
Copy link

Hi @tompaana Could you please assist to get this sorted?

@tompaana
Copy link
Owner

image

Worked for me.

@mailforsachin
Copy link

mailforsachin commented Jul 22, 2019

Thanks @tompaana It is working as expected. But how do we integrate this with the Enterprise Bot template? We are having issues compiling or rather building the code with our existing EBT bot

@praveengov
Copy link

praveengov commented Aug 9, 2019

@tompaana Still, it is throwing the same issue when I updated bot framework to 4.5.1

Human handoff_Issue

@mailforsachin
Copy link

@praveengov Check the thread. I faced the same issue and it was resolved.

@praveengov
Copy link

@praveengov Check the thread. I faced the same issue and it was resolved.

@mailforsachin Yes Sachin. Just now I re-published and tested. Now it is working fine!! Thanks :)

@rungsoso
Copy link

Bot Builder Framework: 4.5.1

  1. Remove the Bot Message Routing Nuget package from the solution
  2. Clone or copy the Bot Message Routing project (https://github.com/tompaana/bot-message-routing)
  3. Open BotMessageRouting.sln Update Nuget packet Microsoft.Bot.Builder from 4.2.2 to 4.5.1 and Rebuild project
  4. Add reference BotMessageRouting.dll to solution

That will fix for me

1567062772271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants