microsoft / microsoft/WindowsAppSDK

Running language model report System.Runtime.InteropService.COMException

Open
#5,171 10 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-WCR Status: Investigating
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

### Describe the bug

I'm trying to run the Windows Copilot Runtime API on Intel 200V platform, the following code report the COMException: "Element not found"

`IProgress progress;
if (!LanguageModel.IsAvailable())
{
var languageModelDeploymentOperationAsync = LanguageModel.MakeAvailableAsync();
languageModelDeploymentOperationAsync.Progress = (_, packageDeploymentProgress) =>
{
progress.Report(packageDeploymentProgress);
};
await languageModelDeploymentOperationAsync;
}
`

![Image](https://github.com/user-attachments/assets/c28944ae-aae5-4f6e-9cf6-36184ba7f216)

### Steps to reproduce the bug

1. Run link[Windows Copilot Runtime APIs example](https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/WindowsCopilotRuntime)
2. Create session in Language Model or Image Description

OS Build 26120.3281

### Expected behavior

_No response_

### Screenshots

_No response_

### NuGet package version

Windows App SDK 1.7 Experimental 3: 1.7.250127003-experimental3

### Packaging type

_No response_

### Windows version

Insider Build (xxxxx)

### IDE

Visual Studio 2022

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Samples/WindowsCopilotRuntime and reproduce the LanguageModel or Image Description flow on the Intel 200V platform and OS build 26120.3281. Inspect the IsAvailable and MakeAvailableAsync calls around the reported COMException; done means establishing the cause and supported behavior for this platform and build, with a fix if required.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.