我在 IIS 中使用 Windows 身份验证,每当我尝试从 adminmode 运行全文搜索索引作业时,错误日志都会给我这个,并且全文搜索服务无法构建索引(Main 和 Ref 文件夹):
2013-04-29 11:09:00,898 [65] EPiServer.Search.RequestHandler.GetNamedIndexes(:0) - Could not get named indexes for uri 'http://epi.hfabintranetv2/IndexingService/IndexingService.svc/namedindexes/?accesskey=E8308A19-5FC4-484C-8E85-C9987884CD07'. Message: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse()
at EPiServer.Search.RequestHandler.MakeHttpRequest(String url, NamedIndexingServiceElement namedIndexingServiceElement, String method, Stream postData, Action`1 responseHandler)
at EPiServer.Search.RequestHandler.GetNamedIndexes(String namedIndexingService)
2013-04-29 11:09:24,462 [64] EPiServer.Search.RequestHandler.SendRequest(:0) - Update batch could not be sent to service uri 'http://epi.hfabintranetv2/IndexingService/IndexingService.svc/update/?accesskey=E8308A19-5FC4-484C-8E85-C9987884CD07'. Message: 'The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse()
at EPiServer.Search.RequestHandler.MakeHttpRequest(String url, NamedIndexingServiceElement namedIndexingServiceElement, String method, Stream postData, Action`1 responseHandler)
at EPiServer.Search.RequestHandler.SendRequest(SyndicationFeed feed, String namedIndexingService, Collection`1 ids)'
我注意到在 IIS 中将匿名身份验证设置为启用可以让全文搜索服务创建索引(主文件夹和参考文件夹)。关于为什么它在使用 Windows 身份验证时不重建索引的任何线索?