我安裝使用Geode到UAT的Windows 2012服務器中的C#窗口服務。引用的DLL(如log4net的,newtonsoft.json和QuickFix的),不同的是對Pivotal.Gemfire.dllSystem.IO.FileNotFoundException與Pivotal.Gemfire.dll
當我啓動服務,我得到System.IO.FileNotFoundException: Could not load file or assembly 'Pivotal.Gemfire.dll' or one of its dependencies. The specified module could not be found. File name: 'Pivotal.Gemfire.dll'
工作現在Gacutil
不來與Win Server 2012的我已經嘗試安裝Windows SDK和.Net SDK,但未找到可執行文件Gacutil
。所以,我已經試過使用PowerShell這樣的DLL來進入GAC:
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
$publish = New-Object System.EnterpriseServices.Internal.Publish
$publish.GacInstall("D:\Pivotal.Gemfire.dll")
我在各種口味
我已經試過編譯和https://github.com/apache/geode-native/tree/develop/executables/GacInstall運行GacInstall可執行試圖regsvr32 Pivotal.Gemfire.dll
。它說Installation completed successfully.
但是當我嘗試運行服務,或嘗試PowerShell的:
([system.reflection.assembly]::loadfile("D:\Pivotal.Gemfire.dll")).FullName
我得到同樣的錯誤。
我使用運行時組件結合
<runtime>
<assemblyBinding
xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Apache.Geode" publicKeyToken="null" culture="neutral" />
<codeBase version="9.1.1-build.2" href="file://Pivotal.Gemfire.dll"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
和名稱Pivotal.Gemfire
的各種口味根據Implementing Shared Assembly,但總是相同的錯誤嘗試的私人集會,Apache.Geode.Client
。
任何想法?謝謝...