2017/12/1

clickOnce部署程式無法安裝

案由:
今天要執行自己發佈的程式,給我出現這個圖案:


錯誤訊息內容:
「由於這個應用程式可能會對您的電腦造成安全性風險,因此系統管理員已將它封鎖 」
「您的安全性設定不允許這個應用程式安裝在您的電腦上」

搜尋上面關鍵字,完全沒有解決方案
後來搜尋關鍵字:
「clickonce security warning Administrator」
google好厲害,語意分析結果,給了我答案
unable-to-install-clickonce-application-due-to-security-settings-windows-10


告訴你,去Microsoft網站上找答案:
How to: Configure the ClickOnce Trust Prompt Behavior
https://msdn.microsoft.com/en-us/library/ee308453.aspx
答案就是:
.net要設定安全性

To disable the ClickOnce trust prompt by using the registry editor

  1. Open the registry editor:
    1. Click Start, and then click Run.
    2. In the Open box, type regedit, and then click OK.
  2. Find the following registry key:
    \HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\.NETFramework\Security\TrustManager\PromptingLevel
    If the key does not exist, create it.
  3. Add the following subkeys as String Value, if they do not already exist, with the associated values shown in the following table.
    String Value subkeyValue
    UntrustedSitesDisabled
    InternetDisabled
    MyComputerDisabled
    LocalIntranetDisabled
    TrustedSitesDisabled
 改為Enabled
另外,裡面有一個 TrustedSites,那個地方的設定在

4 則留言:

Unknown 提到...

我也有類似問問題,感謝提供資訊,已解決問題!

Yuan yu 提到...

我有有這個問題但是是下載grasshopper 的外掛軟體lunchbox時跑出這個問題,試了您的方法後還是一樣無解...

Yuan yu 提到...
作者已經移除這則留言。
阿龍 提到...

這是我clickOnce安裝自己開發程式的異常排除
沒有使用過grasshopper,所以無法告知解決方式
抱歉

JPA+complex key+custom Query

  來源: https://www.cnblogs.com/520playboy/p/6512592.html   整個來說,就是有複合主鍵 然後要使用  public interface XxXXxx DAO extends CrudRepository<Tc...