1. 程式人生 > >安裝.net 服務時出現0x80131515錯誤的解決辦法

安裝.net 服務時出現0x80131515錯誤的解決辦法

使用InstallUtil.exe安裝一個用.NET寫的Windows服務時,報錯了,錯誤資訊如下:

Exception occurred while initializing the installation:

System.IO.FileLoadException: Colud not load file or assembly 'xxxxxx' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

 

右鍵exe檔案,最下面有個解除鎖定按鈕,點選下。再執行installutil.exe,問題解決。
---------------------
作者:ghlfllz
來源:CSDN
原文:https://blog.csdn.net/ghlfllz/article/details/51305686
版權宣告:本文為博主原創文章,轉載請附上博文連結!