question

MilosTomic-5989 avatar image
0 Votes"
MilosTomic-5989 asked MilosTomic-5989 commented

Chatbot created through QnA Maker does not compile?

I created a knowledge base through QnA maker and then followed the steps to create a chatbot.
The bot works, however when I download its source code and change something in the code, it won't compile. (even if I don't change anything)

I first do 'dotnet restore' and then 'dotnet build' but then it fails to build and the error message states that I don't have a main method. It seems it is missing
some files, this also fails in the online editor.

The error is identical to this one:
https://social.msdn.microsoft.com/Forums/en-US/cd019ddd-a03e-4191-a3da-2feaf51c2a8d/qna-maker-generated-bot-code-does-not-compile-locally?forum=MachineLearning
It still isn't fixed it seems.

Any help would be appreciated.

azure-bot-serviceazure-qna-maker
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MilosTomic-5989 It looks like some files are missing in the download of source code. The original issue in the thread you mentioned was fixed and it looks like it might have creeped in again. We will check this internally and provide an update. Thanks for reporting this.

1 Vote 1 ·

@romungi-MSFT is there any update perhaps on this? thanks

0 Votes 0 ·

@MilosTomic-5989 We can confirm that this is a bug as some code files are missing in the zip file package that is being downloaded. You can use the attached missing files and include them in your project to re-compile.
102414-adapterwitherrorhandler.txt 102522-program.txt 102523-startup.txt

Please download them and rename them as .cs files in your solution.

A fix will be rolled out soon to include these files as part of the zip package. Thanks.


1 Vote 1 ·

Thanks. Where should I place those files, in the root folder of the project or some subfolder?

0 Votes 0 ·
Show more comments

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered MilosTomic-5989 commented

@MilosTomic-5989 A hot fix has been rolled out for the issue with missing files in the code download. Could you please check and verify if the code builds successfully without manually adding any files?

EDIT: Please re-publish and re-deploy the bot before downloading the source code and building it.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It works! Thanks very much.

0 Votes 0 ·