How to resolve this System.IO.FileNotFoundException

前端 未结 4 633
再見小時候
再見小時候 2020-12-17 19:34
  • The error only happens in production (not in debugging).
  • The error only happens on the first application run after Windows login.
  • The error occurs w
4条回答
  •  醉话见心
    2020-12-17 20:12

    Check all the references carefully

    • Version remains same on target machine and local machine
    • If assembly is referenced from GAC, ensure that proper version is loaded

    For me cleaning entire solution by deleting manually, updating (removing and adding) references again with version in sync with target machine and then building with with Copy Local > False for GAC assemblies solves the problem.

提交回复
热议问题