Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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!!!
Posted
Updated 12-Feb-15 20:05pm
v2
Comments
Sergey Alexandrovich Kryukov 12-Feb-15 22:45pm    
Are you saying that something works fine when the target architecture is different from "Any CPU"? Did you really try it? I would rather believe that the problem is unrelated to the target architecture. Anyway, you did not provide enough information to help you.
—SA
Rob Philpott 13-Feb-15 5:59am    
If you find out what this is (perhaps one of the solutions below) please let us know. I am curious!

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.
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900