如何在新机Win 7 Home上安装基于.net的Windows服务

时间:2013-08-11 15:28:58

标签: c# .net windows-services installutil

我们使用.net 4.5进行Windows服务构建。当我试图在我们的UAT机器上安装相同的服务时它在开发机器上很好,它给出了以下错误,我已经安装在这台UAT机器上。仅限.NET 4.5。在下面进一步下面我粘贴了Fusion Log错误请帮助。

C:\AuditServers\Services\AuditEngine\bin>ServiceInstall.bat Installing Service... Microsoft (R) .NET Framework Installation utility Version
4.0.30319.17929 Copyright (C) Microsoft Corporation.  All rights reserved.

Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not load file or assembly 'file:///D:\Dat a\AuditServer\Services\AuditEngine\bin\Audit.Services.AuditEngine.exe' or one of its d ependencies. The system cannot find the file specified.. Install Done. Press any key to continue . . .

Fusion Log

*** Assembly Binder Log Entry  (8/11/2013 @ 4:18:23 PM) ***

The operation failed. Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under executable  C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe
--- A detailed error log follows. 

=== Pre-bind state information === LOG: User = WIN-30DJ1MGM28A\VM-User LOG: Where-ref bind. Location = D:\Data\AuditServer\Services\AuditEngine\bin\Audit.Services.AuditEngine.exe LOG: Appbase = file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = InstallUtil.exe Calling assembly : (Unknown).
=== LOG: This bind starts in LoadFrom load context. WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load(). LOG: Using application configuration file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe.Config LOG: Using host configuration file:  LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Attempting download of new URL file:///D:/Data/AuditServer/Services/AuditEngine/bin/Audit.Services.AuditEngine.exe. LOG: All probing URLs attempted and failed.

请提出任何建议。 感谢

0 个答案:

没有答案