C# windows application Event: CLR20r3 on application start

前端 未结 5 765
生来不讨喜
生来不讨喜 2020-12-13 20:04

I created a C# application and installed it on my test box. My app works perfect on my dev box, but when I install in on a different machine it crashes in the Main(). I get

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 21:01

    I've seen this same problem when my application depended on a referenced assembly that was not present on the deployment machine. I'm not sure what you mean by "referencing DotNetBar out of the install directory" - make sure it's set to CopyLocal=true in your project, or exists at the same full path on both your development and production machine.

提交回复
热议问题