Questions tagged «direct-line-botframework»

3
ChatBot在Web模拟器中无法运行,但在Local Bot Framework模拟器中可以正常运行
我开发了与SharePoint内部部署集成的ChatBot。当我在模拟器中调试ChatBot时,它可以工作。但是,当我使用DirectLine在Azure中的Web Emulator和公司网站中托管的网站上调试时,它不起作用。 有人知道如何解决吗? 附上我的截图。左侧来自Web模拟器,右侧来自本地Bot Framework模拟器 使用源代码更新(2019年12月9日) XmlNamespaceManager xmlnspm = new XmlNamespaceManager(new NameTable()); Uri sharepointUrl = new Uri("https://mvponduty.sharepoint.com/sites/sg/daw/"); xmlnspm.AddNamespace("atom", "http://www.w3.org/2005/Atom"); xmlnspm.AddNamespace("d", "http://schemas.microsoft.com/ado/2007/08/dataservices"); xmlnspm.AddNamespace("m", "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"); NetworkCredential cred = new System.Net.NetworkCredential("engsooncheah@mvponduty.onmicrosoft.com", "Pa$$w0rd", "mvponduty.onmicrosoft.com"); HttpWebRequest listRequest = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + "_api/lists/getByTitle('" + "data@work" + "')/items?$filter=Keywords%20eq%20%27bloomberg%27"); listRequest.Method = "GET"; listRequest.Accept = "application/atom+xml"; listRequest.ContentType = "application/atom+xml;type=entry"; listRequest.Credentials …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.