あるマシンでの奇妙な動作の真相を突き止めようとしています。対話的に実行する単純なコンソール アプリケーションがありますが、WMI 経由で呼び出すと、すぐに起動して終了します。
Procmon が非公開だったので、Fusion ログを有効にしました。次のエラーが表示されます。
*** Assembly Binder Log Entry (31-01-2015 @ 19:22:51) ***
The operation was successful.
Bind result: hr = 0x1. Incorrect function.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\CMCBOOTSTRAP\Cmc.Installer.Agent.Console.exe
--- A detailed error log follows.
BEGIN : Native image bind.
END : Incorrect function. (Exception from HRESULT: 0x00000001 (S_FALSE))
「誤作動」の原因は?このアプリケーションが WMI 経由の起動時に効果的に終了する理由を判断するには、他に何を調べることができますか?
そして、私は些細なことを意味します...
class Program
{
static void Main(string[] args)
{
Thread.Sleep(30000);
}
}
環境は Windows Server 2012 R2 と .NET 4.5 です。