ClickOnce error: Value does not fall within the expected range

后端 未结 15 1601
旧时难觅i
旧时难觅i 2020-12-01 01:08

Getting this error on ALL ClickOnce application launches for a certain user. This started happening after a version upgrade (but happens to no one else).

I\'ve trie

15条回答
  •  悲&欢浪女
    2020-12-01 01:45

    After hours of troubleshooting this error, I found that in my case it was because I was trying to run the installer from a mapped network drive instead of a UNC path. The first time you run the installer, it works fine. But if you run it again, you get the following error:

    Browsing into the error details, you find the highly ambiguous error:

    If I instead run the application from a UNC path \\MyServer\MyShare\Deploy... Then it runs just fine, consistently.

    Upon further investigation, it sounds like what is going on here is that the installer is verifying (for security reasons) that it is being run from the authorized deployment url, as specified in the *.application deployment manifest.

    Since the current path (mapped drive) is different from the UNC path, the installation fails and the program is removed. Note the difference between the paths in the error log:

    So what the error really means is "Warning! The application cannot be installed because the deployment URL does not match the provider URL specified in the deployment manifest."

    Well, that would have saved me a lot of hours of troubleshooting!! :-)

提交回复
热议问题