无法将用户控件加载到工具箱
当我们将用户控件 dll 添加到 Visual Studio 的工具箱时,我们收到以下错误消息。该问题出现在 WinXP 64 位中。用户控件引用名为 ICEConnect200Bridge 的模块。程序集 ICEConnect200Bridge 是一个 C++ CLI 模块。用户控件是使用“任何 CPU”平台构建的。
我应该为 ICEConnect200Bridge 提供什么构建选项? 我应该怎样做才能确定问题的确切原因?
无法加载文件或程序集“ICEConnect200Bridge,Version=1.2.6.0,Culture=neutral,PublicKeyToken=null”或其依赖项之一。尝试加载格式不正确的程序
When we add a user control dll to the Tool Box of Visual Studio, We are getting the following error message. The issue occurs in WinXP 64 bit. The user control refers a module named ICEConnect200Bridge. The assembly ICEConnect200Bridge is a C++ CLI module. The user control was built using 'Any CPU' platform.
What build option should I give for ICEConnect200Bridge?
What should I do to identify the exact cause of the issue?
Could not load file or assembly 'ICEConnect200Bridge, Version=1.2.6.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
构建 ICEConnect200Bridge 时,将目标专门设置为 x86 而不是任何 CPU。 Visual Studio 是针对 x86 进行编译并安装在 Program Files (x86) 中,并且不接受其工具箱中未针对同一目标显式编译的控件。
When building ICEConnect200Bridge, put the target specifically to x86 instead of Any CPU. Visual Studio is compiled for x86 and installed in Program Files (x86) and does not accept controls in its toolbox that are not explicitly compiled for the same target.