"Unable to activate Windows Store app ... Uknown error: 0x80040904"

Hong 1,246 Reputation points
2022-12-22T01:58:00.237+00:00

When I run a UWP app from VS, I get the following error:

Unable to activate Windows Store app.... The activation requested failed with error 'Operation not supported. Uknown error: 0x80040904'

273037-image.png

In case, this may be related to the PC, I tested it on another PC and got the same error.

I have other UWP apps that can be deployed to these same two PCs and run flawlessly.

The even viewer has the following entry:

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">  
- <System>  
  <Provider Name="Microsoft-Windows-Immersive-Shell" Guid="{315a8872-923e-4ea2-9889-33cd4754bf64}" />   
  <EventID>5961</EventID>   
  <Version>0</Version>   
  <Level>2</Level>   
  <Task>5961</Task>   
  <Opcode>0</Opcode>   
  <Keywords>0x4000000000000000</Keywords>   
  <TimeCreated SystemTime="2022-12-22T01:49:18.4583818Z" />   
  <EventRecordID>129</EventRecordID>   
  <Correlation ActivityID="{f4ecbe5c-13ba-000a-28d4-ecf4ba13d901}" />   
  <Execution ProcessID="5908" ThreadID="35372" />   
  <Channel>Microsoft-Windows-TWinUI/Operational</Channel>   
  <Computer>W10R7</Computer>   
  <Security UserID="S-1-5-21-1917869124-259510307-1805243227-1001" />   
  </System>  
- <EventData>  
  <Data Name="AppId">my.app0!App</Data>   
  <Data Name="ErrorCode">-2147219196</Data>   
  <Data Name="PhaseFlags">33</Data>   
  </EventData>  
  </Event>  

Could anyone offer a tip on the remedy for this?

Developer technologies | Universal Windows Platform (UWP)
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.