Clickonce full trust app update failing with TrustNotGrantedException on Windows 8

后端 未结 3 2041
旧时难觅i
旧时难觅i 2020-12-10 15:41

We have a winforms clickonce application in C# which is granted full trust and signed using a valid certificate.

The application runs fine and updates correctly on W

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 16:13

    We had the same problem and ended up using the InPlaceHostingManager class. It's made for installing or updating a ClickOnce deployment. GetManifestAsync() fires the GetManifestCompleted event, which gives you the version number. Then you can call DownloadApplicationAsync() and handle the DownloadApplicationCompleted event. So far this works and no TrustNotGrantedException is thrown.

提交回复
热议问题