Azure-docs: doesn't work

Created on 21 Jun 2018  ·  16Comments  ·  Source: MicrosoftDocs/azure-docs

I tried following these steps and it doesn't work. I get a Response code 500 (Internal Server error)

I am confused, where do we place the KB, Endpoint and SubKey from QNA in the code exactly? I placed them in the instantiation


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author cognitive-servicesvc doc-bug in-progress triaged

All 16 comments

@Rykimaruh Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

@nstulasi Hi, this is a document-related issue, can you please help check if there any change that will make the error? Thanks.

I also tried following the steps provided in the doc and it doesn't work. I am getting below error while building the project.

All packages listed in packages.config are already installed.
Dialogs\BasicLuisDialog.cs(3,7): error CS0246: The type or namespace name 'RestSharp' could not be found (are you missing a using directive or an assembly reference?) [D:\home\site\wwwroot\Microsoft.Bot.Sample.LuisBot.csproj]

Please help.

Now, the issue is resolved by setting up the project locally and fixed the issue by executing below command in package manager

Install-Package RestSharp

Then commited the code using continous deployment (VSTS) to Azure.

error CS0246: The type or namespace name 'RestSharp' could not be found (are you missing a using directive or an assembly reference?)
Same issue.

For solve this problem, I must configure the “Continuous deployment from source control”, when I download the source code, I choose add reference with NuGet, this install RestSharp 106.3.1 with framework 4.5.2, after that I Synchronized the solution, and works well.

I tried to install RestSharp through package manager, but got this error:

PM> Install-Package RestSharp
Install-Package : Unable to find package 'RestSharp' at source ''.
At line:1 char:1
+ Install-Package RestSharp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets 
   .InstallPackageCommand

Also, when I try to build the project, it says I have NuGet packages missing, but when I click "restore NuGet", it says I have everything installed already. Here is my build error:
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is .\packages\Microsoft.Net.Compilers.1.2.1\build\Microsoft.Net.Compilers.props. Microsoft.Bot.Sample.LuisBot C:\Users\v-wiazur\Desktop\StudyBotLUIS-src\Microsoft.Bot.Sample.LuisBot.csproj 243

You should use this versions Microsoft.Net.Compiler v1.2.1 and Microsoft.CodeDOM.Providers.DotNetCompilerPlatform v1.0.1

hello, it still doesn't work for me, I used the exact code from integrate QnA with LUIS and every thing is done on azure but I still get the restsharp error
I included the rest sharp version in packages.config but still getting the error
pls help its quite frustrating

@adetutumary This document was updated today. Please review the document and respond if you still have an issue. #in-progress

Will there be a bot v4 version of the documentation available soon? It has very different foundational code than the v3.

BF v4 needs to finalize a no-code path for QnA Maker before this document will be written.

@adetutumary I have a working sample if you wanted to look at it. It uses bot v3 code though, so just make sure you select SDK v3 in Azure when creating your web app bot. It integrates both LUIS and QnA Maker. https://github.com/Azure-Samples/cognitive-services-studybot-csharp/tree/master/Qna-Luis-Bot

Hi @diberry
I have four application KB's. I need to create a bot , when the user say hi, bot should prompt with four application KB names, once the user select the KB name, bot should reply the answers for next questions from that KB.

Please assist. how to proceed this ?
Note:- No parallel execution.

@azhagar44 This is currently solved with the dispatch tool and the dispatch BF template #14.

please-close

@Azhagar, a working sample, Nlp-with-dispatch just upgraded yesterday. It uses LUIS to understand user queries, then sends them to QnA Maker for a response. I tested it using Visual Studio and the Bot Emulator and it works.

We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JamesDLD picture JamesDLD  ·  3Comments

monteledwards picture monteledwards  ·  3Comments

jharbieh picture jharbieh  ·  3Comments

AronT-TLV picture AronT-TLV  ·  3Comments

paulmarshall picture paulmarshall  ·  3Comments