使用InstallUtil.exe安裝一個用.NET寫的Windows服務時,報錯了,錯誤信息以下:.net
Exception occurred while initializing the installation:blog
System.IO.FileLoadException: Colud not load file or assembly 'xxxxxx' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)ci
右鍵exe文件,最下面有個解除鎖定按鈕,點擊下。再執行installutil.exe,問題解決。
---------------------
做者:ghlfllz
來源:CSDN
原文:https://blog.csdn.net/ghlfllz/article/details/51305686
版權聲明:本文爲博主原創文章,轉載請附上博文連接!it