ServerContext.Current is null. GetIndexServiceInstance() should only be called within the context of processing a Web request. ...