“Store metadata ”CurrentBind“ is not valid” in debug of ClickOnce application

后端 未结 4 986
孤独总比滥情好
孤独总比滥情好 2021-02-19 08:52

When I try to access \"Application.CommonAppDataPath\" i get this error message:

System.Deployment: Store metadata \"CurrentBind\" is not valid

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-19 09:24

    I had exactly the same problem. Thanks to mkale for pointing me in the right direction.

    I had installed the Reflector VS Addin a few days ago, and at some point it asked about changing the Just My Code option. I had completely forgotten about it, and have been messing around with this problem for the last two days!

    At the same time I also had a problem with FileLoadException - which was reporting in the Fusion log that "WRN: Comparing the assembly name resulted in the mismatch: Revision Number". Initially I got around that problem by setting the assembly version to 1.1.0.0 instead of as 1.1.*.

    However, once having set the Just My Code option, all these problems disappeared.

提交回复
热议问题