試圖在W7 64位上運行,在Visual C#2008 Express上使用.Net 3.5,我嘗試在Framework和Framework64文件夾中運行installutil.exe,兩者都拋出相同的錯誤。 3.5文件夾沒有installutil.exe和4.0兩個文件夾都不起作用。InstallUtil引發錯誤信息
在IDE中,沒有發佈版本,但發佈,他們是一樣的嗎?
我按照教程從這篇文章: http://www.switchonthecode.com/tutorials/creating-a-simple-windows-service-in-csharp
出了什麼問題?
D:\install>C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe setup.e
xe
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.4927
Copyright (c) Microsoft Corporation. All rights reserved.
Exception occurred while initializing the installation:
System.BadImageFormatException: Could not load file or assembly 'file:///D:\inst
all\setup.exe' or one of its dependencies. The module was expected to contain an
assembly manifest..
有沒有人使用這個工作? – user1040975 2017-07-21 16:51:44