2015-02-05 44 views
0

爲UpdateDescriptor新添加的「ScriptId」似乎不起作用。在運行時,我得到以下錯誤:ElasticSearch NEST UpdateDescriptor scriptId不起作用,給出System.MissingMethodException

system.missingMethodException而爲未處理 的HResult = -2146233069 消息=未找到方法: 'Nest.UpdateDescriptor`2 Nest.UpdateDescriptor`2.ScriptId(System.String)'。 源= SMSProcessManagers 堆棧跟蹤: 在TestApp.TestApplication.Program.Main(字串[] args)在E:\ SRC \應用\ TestApplication \ Program.cs的:線49 在System.AppDomain._nExecuteAssembly(RuntimeAssembly組件,字符串[]參數) 在Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 在System.Threading.ExecutionContext.RunInternal(的ExecutionContext的ExecutionContext,ContextCallback回調,對象的狀態,布爾preserveSyncCtx) 在System.Threading.ExecutionContext.Run(的ExecutionContext執行環境,ContextCallback回調,對象狀態,Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state) 在System.Threading.ThreadHelper.ThreadStart() InnerException:

有誰知道這是什麼修復?

+0

我有複製和粘貼問題。我收到的錯誤是: Nest.UpdateDescriptor'2 Nest.UpdateDescriptor'2.ScriptId(System.String) – 2015-02-05 20:24:21

回答

0

這個問題原來是一個仍然存在並與新版本衝突的嵌套庫的舊版本。卸載所有嵌套(和相關的nuget軟件包)並重新安裝最新的嵌套軟件包後,它工作正常。