ClickOnce error: Value does not fall within the expected range

后端 未结 15 1441
旧时难觅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 02:03

    i have been searching for a clean solution for this problem for a while. I could fix it couple of times by trial and error. Finally i could able to nail down exact issue. I thought of sharing it here.

    Above error tells it can't find a matching file in deployment folder.

    If you are facing this problem for an update check following.

    1. Download application.exe.manifest file from the deployment which is working.
    2. Compare current version of application.exe.manifest file with old one.
    3. Look for any reference added/removed/changed. if you see anything suspicious, manually edit/rollback that part of manifest and try, most cases it will work.

    If new Upload

    Check you have all assemblies marked as 'copy local=true' got in deployment folder, also check its size once uploaded.

    because 'copy local = false' assemblies will be treated as prerequisites in clickonce engine. Most of the application launch problem starts from there.

提交回复
热议问题