【问题标题】:KES build index System.AccessViolationExceptionKES 构建索引 System.AccessViolationException
【发布时间】:2016-07-14 00:56:53
【问题描述】:

我们正在为我们的用户构建交互式搜索,我尝试了这个 Microsoft KES link,看起来不错。

当我尝试托管服务时

kes.exe host_service d:\kes\grammarout.grammar d:\kes\indexout.index

我遇到了以下问题,

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Net.UnsafeNclNativeMethods.SetFileCompletionNotificationModes(CriticalHandle handle, FileCompletionNotificationModes modes)
   at System.Net.HttpListener.CreateRequestQueueHandle()
   at System.Net.HttpListener.Start()
   at Kes.WebServer.Start()
   at Kes.KesWebServiceCmd.ExecuteInt()
   at Kes.KesWebServiceCmd.Execute()
   at Kes.Program.Main(String[] args)

我尝试以管理员身份运行命令提示符,但弹出相同的问题。

【问题讨论】:

    标签: c# microsoft-cognitive


    【解决方案1】:

    您可以尝试将端口显式设置为不同的值吗?

    kes.exe host_service Academic.grammar Academic.index --port 9999
    

    如果这不起作用,请搜索来自 SetFileCompletionNotificationModes() suggests 的特定错误消息,这可能是由于来自第 3 方应用程序的干扰。您是否安装了任何可能拦截网络流量的应用程序?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-06
      • 1970-01-01
      • 1970-01-01
      • 2019-04-26
      • 2015-01-06
      • 2021-03-19
      • 2017-09-05
      • 2014-07-12
      相关资源
      最近更新 更多