我用Visual Studio 2013开发了一个应用程序,它工作得很好。我甚至可以将其移动到其他目录,因此应用程序中使用的所有路径都是相对路径!
不幸的是,它只能在开发人员的计算机上运行,而不能在其他计算机上运行。所以我猜,可能是缺少了.dll之类的东西。
这是我得到的错误消息:
> Problem signature:
> Problem Event Name: CLR20r3
> Problem Signature 01: MyApp.exe
> Problem Signature 02: 1.0.0.0
> Problem Signature 03: 53314d38
> Problem Signature 04: PresentationCore
> Problem Signature 05: 4.0.30319.18408
> Problem Signature 06: 52313210
> Problem Signature 07: 1b7e
> Problem Signature 08: 0
> Problem Signature 09: System.BadImageFormatException
> OS Version: 6.1.7601.2.1.0.256.4
> Locale ID: 2055
> Additional Information 1: 0a9e
> Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
> Additional Information 3: 0a9e
> Additional Information 4: 0a9e372d3b4ad19135b953a78882e789发布于 2014-03-25 19:46:32
当我遇到这个问题时,它通常是由没有安装适当的.NET框架引起的。
发布于 2014-03-25 19:51:36
请确保……1-您为程序中引用的程序集设置了CopyLocal - true,并且这些程序集在当前目录中可用。2-您在应用程序中添加了目标计算机的GAC中不存在的引用。3-如果.net框架版本与您用于开发应用程序的版本相同,则有可能引用了不能在目标计算机上运行的任何非托管组件。
https://stackoverflow.com/questions/22633483
复制相似问题