我已经使用Visual Studio 2010开发了一个Windows服务应用程序,以便集成两个应用程序。
在我的WinService中,我调用目标应用程序开发人员提供的一些API DLL文件,从原始应用程序获取信息后,在目标应用程序中创build一些信息。
所以我的Windows服务就像一些中间件应用程序。
当我运行该服务时,出现以下错误:
Inno Setup – 如何告诉安装程序执行Google Chrome时,应该打开stackoverflow.com?
Windows帮助:应用程序无法正确初始化(0x80000003)
是否有可能映射窗口的Vim键绑定,就像vimium for chrome一样
Android Studio没有响应
用golang创build硬链接
System.BadImageFormatException: Could not load file or assembly 'Interop.ErpBS800,Version=8.5.0.0,Culture=neutral,PublicKeyToken=e076e239d0e78a42' or one of its dependencies. An attempt was made to load a program with an incorrect format. File name: 'Interop.ErpBS800,PublicKeyToken=e076e239d0e78a42' at MaeilKitWintouch.Primavera.CreateDocument(Facturas fac) at MaeilKitWintouch.MaeilKitWintouch.ExecuteRequest() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging,set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off,remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].
在我的Windows 7 x86笔记本电脑中,一切都很好,但是在Windows Small Business Server 2011 Essentials 64位中,我收到了这个错误。
我有PLATFORM TARGET =任何cpu和目标FRAMEWORK = .NET 4。
如何在Windows身份validation中使用chrome?
Windows的FILETIME结构是否包含闰秒?
exec:“gcc”:当试图编译时,%PATH%中找不到可执行文件
在Windows中启动和停止elasticsearch节点
Chrome浏览器JavaScript和原生Windows代码之间的通信
您的应用程序很可能以64位模式运行(因为您将“平台目标”设置为“ 任何cpu” ),并尝试加载32位库。
针对特定目标平台(任何cpu与x86与x64)编译.NET的博客文章总结得很好。
我的这个错误的解决方案是不同的,经过4天的“平台战争”,如果我改变到x86 / x64我得到了同样的错误….
我做的是:
从Visual Studio中卸载所有项目和对冲突DLL的引用(也可以用引用注释所有的代码行),项目必须运行没有错误。
在主应用程序中,去属性 – >编译 – >提前编译选项 – > Tarjet cpu – 在这里更改为x86
重新编译项目
加载项目/ refrences到DLL
测试如果工作正常
取消注释所有代码行并重新编译
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。