Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issues on Microsoft.BotFramework + LUIS + .Net Core 2.0

I had implemented a chatbot using Microsoft.BotFramework in a .Net Framework WebAPI and it's working, now I want do port it to .Net Core 2, to share some libraries, authentication ... with other projects.

The big issue is that everytime I try to run it, when the message is passed to my "Dialog" class, my bot crashes giving me the following error:

Exception: Type ‘System.RuntimeType’ in Assembly ‘System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e’ is not marked as serializable.

I tried to find some solutions but couldn't find any.

like image 605
LuccasMF Avatar asked Feb 17 '26 10:02

LuccasMF


1 Answers

There is no official bot.builder package compatible with AspNetCore. Therefor, you cannot use dialogs with AspNetCore. There is however another user that has seemed to find a workaround in this GitHub issue. There is also at least 1 unofficial package

like image 181
D4RKCIDE Avatar answered Feb 21 '26 14:02

D4RKCIDE



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!