使用“任何CPU”构建项目问题组态 [英] Building Project Problem with "Any CPU" Configuration

查看:97
本文介绍了使用“任何CPU”构建项目问题组态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



我在使用任何CPU配置构建可执行项目时遇到问题。它说异步结果对象为null或意外类型。我需要在任何CPU配置中构建我的应用程序。起初它很好然后突然问题出来了,我不知道这个问题背后的原因是什么。当我在x86配置中运行我的应用程序时,没关系。



如何解决这个问题,以便我可以在任何CPU配置下运行我的应用程序?



任何人都可以帮我这个。非常感谢你提前。



上帝保佑我们所有人!!!

Hi to all!!

I have a problem in building my executable project using "Any CPU" configuration. It says "The async result object is null or of an unexpected type". I need to build my applications in "Any CPU" configuration. At first it was ok then suddenly the problem came out and I dont know what's the reason behind this problem. When i run my application in "x86" configuration, its okay.

How can I solve this so that I can run my application in "Any CPU" configuration?

Can anyone help me on this. Thank you so much in advance.

God bless us all!!!

推荐答案

问题是与执行路径太长有关。如果长度超过127个字符,则可能会出错。

尝试减小程序集名称的大小。
The problem is related to the execution path being too long. If it is over 127 characters long, it can throw an error.
Try reducing the size of the assembly name.


检查项目引用:可能是您正在使用仅为x86构建的程序集。

还要检查任何DllImport库,以确保它们在32位和64位版本中可用。如果您使用32位外部代码构建任何CPU应用程序,您将遇到此类问题。
Check your project references: chances are that you are using an assembly which is built for x86 only.
Also check any DllImport libraries to make sure they are available in 32 and 64 bit versions. If you build an "any CPU" app with a 32 bit external code you will get such problems.


这篇关于使用“任何CPU”构建项目问题组态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆