Click here to Skip to main content
16,017,954 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
Odd question, I have built an exe on my main dev platform (Win11 VS2022 64-Bit) and am having issues running on the PC it needs to run on. Which is a Touch Screen Win11 23H2 which is the same as my Dev PC (23H2)...
They are both the same version of Windows (?), if I run it as admin I get the same blue box telling me to ask myself for a compatible version?
HELP!
Glenn

And works if run off a memory stick? but not the desktop...

What I have tried:

Checking the Build Options ensuring they are set to AnyCPU.
Running FixDotNetXXXXXXXX.
Posted
Updated 29-Apr-24 4:22am
v3
Comments
Dave Kreskowiak 29-Apr-24 10:09am    
There's nothing to go on in that question. We would need the details on the project, what platform it was targeting in the Project Properties, and the message in this blue box.
glennPattonWork3 29-Apr-24 10:24am    
Message in the Blue Box "This app can't run on your PC" To find a version for your PC, check with the software publisher." If I am running the same OS... I don't know what to alter in VS.

If run from a memory stick it runs?
 
Share this answer
 
Comments
glennPattonWork3 29-Apr-24 10:56am    
Could there be a protection setting?
Dave Kreskowiak 29-Apr-24 12:14pm    
No protection setting. The problem is just weird. Which version of .NET?

glennPattonWork3 29-Apr-24 14:08pm    
I'm home now so I will check tomorrow. This gets odder and odder!
Net 4.8.0932 on programming PC
Net 4.80932 on PC needs to run on...
 
Share this answer
 
Comments
Dave Kreskowiak 30-Apr-24 9:49am    
4.8 doesn't have many options, so the only thing I can think of that's stopping it from running is the Platform type. You say it's set to Any CPU, but try it explicitly set to x64 or x86 if you've got external .DLL dependencies.

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