新しい MSI ビルドを介して Windows サービスをインストールしました。しかし、サービスは、説明なしに停止する前に、コンストラクターの処理を終了するだけです。Fusion ログに次のように表示されます。
*** Assembly Binder Log Entry (2013-07-17 @ 12:48:29) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
Running under executable C:\Program Files\SoW\Market Communicator\Company.Market.Communicator.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = SoW\kasper
LOG: DisplayName = Company.Market.Administration, Version=1.3.0.49, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///C:/Program Files/SoW/Market Communicator/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : Company.Market.Communicator, Version=1.3.0.140, Culture=neutral, PublicKeyToken=null.
===
LOG: Start binding of native image Company.Market.Administration, Version=1.3.0.49, Culture=neutral, PublicKeyToken=null.
WRN: No matching native image found.
しかし、インストールされているdllを調べましたが、それが探しているものです。「操作に失敗しました」の理由がわかりません。
C:\Program Files\SoW\Market Communicator>asminfo Company.Market.Administration.dll
結果:
Company.Market.Administration, Version=1.3.0.49, Culture=neutral, PublicKeyToken =null | Amd64
探しているファイルのようです。しかし、なぜ失敗するのでしょうか。