我已经通过新的MSI版本安装了Windows服务。但是服务只是在没有解释的情况下停止之前完成了构造函数。我在融合日志中得到以下内容:
*** 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
看起来它正是它正在寻找的文件。但是为什么它会失败呢?