C# 如何在fresh machine Win 7 Home上安装基于.net的windows服务

C# 如何在fresh machine Win 7 Home上安装基于.net的windows服务,c#,.net,windows-services,installutil,C#,.net,Windows Services,Installutil,我们有一个使用.NET4.5的windows服务版本。当我试图在我们的UAT机器上安装相同的服务时,开发机器上的情况很好。它给出了以下错误,我已经在这个UAT机器上安装了。仅限NET4.5。在此之后,我在下面进一步粘贴了融合日志错误,请帮助 C:\AuditServers\Services\AuditEngine\bin>ServiceInstall.bat Installing Service... Microsoft (R) .NET Framework Installation ut

我们有一个使用.NET4.5的windows服务版本。当我试图在我们的UAT机器上安装相同的服务时,开发机器上的情况很好。它给出了以下错误,我已经在这个UAT机器上安装了。仅限NET4.5。在此之后,我在下面进一步粘贴了融合日志错误,请帮助

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 . . .
融合日志 请提出任何建议。
谢谢

您是否尝试使用msi安装程序而不是使用bat文件安装它?不,亲爱的,我没有尝试通过安装程序安装它,我会尝试并张贴我的结果很快回到这里。
*** 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.