Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have developed on application using C# language in visual studio 2019.

Now when i am deploying on another system it is giving error

Could not load file or assembly 'cli_cppuhelper" like this

https://i.imgur.com/ZjdirIy.png[^]


what i am notice that

If i checked "Prefer 32 bit" from project Build property then i am not getting this error.

But if i uncheck "Prefer 32 bit" and build the setup and deploy on another system then i am getting error like this

What I have tried:

i checked "Prefer 32 bit" from project Build property then i am not getting this error.
Posted
Updated 19-Dec-21 22:21pm

From what I could find on google, that dll is 32-bit only. That's why it works when you "prefer 32-bit".
 
Share this answer
 
You can't mix 32 bit and 64 bit components in the same application: a process if either 32 bit or 64, and cannot change while it is running. I told you this yesterday: 'Project_name. Exe' targeting 'AMD64' is not compatible with the project's target platform 'x86'[^] and it doesn't change even if you want it to!

We can't "fix that" - you either need a 64 and a 32 bit version of your component, or to run with the 64 bit version you have and a fully 64 bit application.
 
Share this answer
 
v2

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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