Click here to Skip to main content
15,900,589 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I have written an 'app' in C# Visual Studio 2022. My dev machine is a Win 11,
Version 23H2 Build 22631.3447 I am trying to run on a Win 11, 23H2 OS Build 22631.3447 machine. running the same version of .NET the executable will run on my machine when I take it to the target I get the Blue Banner of shame and told to ask me for a compatible version. The main difference between the PC's is the Touch interface. I wouldn't mind but I did have an old PC not connected to the network running the application that won't run now.
I have tried to build a C# exe in VS2022 that will run on the Touch PC but it will not. I can't think I have done anything odd but have I missed a setting?... This is sort of related to a question I asked yesterday and Dave Kreskowiak answered some of it.
Glenn

What I have tried:

Building in .NET6.0 same result.
Tried program in .NET3.5 runs perfectly.
Posted
Comments
Richard MacCutchan 30-Apr-24 12:19pm    
Check the exact version details of .NET on both machines.
0x01AA 30-Apr-24 13:57pm    
Step by step:
Quote 1: "My dev machine is a Win 11, Version 23H2 Build 22631.3447"
Quote 2: "I am trying to run on a Win 11, 23H2 OS Build 22631.3447 machine"
No difference, agree?
Quote 3: "...when I take it to the target I get the Blue Banner of shame..."
The target machine is now what _exactly_?
glennPattonWork3 30-Apr-24 14:08pm    
A 'Touch screen' PC replacing a PC that worked as it is modern.

1 solution

You might need to adjust the application manifest or compatibility settings in Visual Studio. This includes checking if your app is requiring specific Windows capabilities or if there are manifest declarations that differ in environments that support touch interfaces.

You can try running the executable in compatibility mode on the target device to narrow things down. Right-click the executable, go to Properties, then the Compatibility tab, and select a previous version of Windows to test if this resolves the issue.
 
Share this answer
 
Comments
glennPattonWork3 30-Apr-24 14:09pm    
I will try that I have tried to do it via the Build->Properties options... will try that tomorrow.

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