WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

WCR: LAF com.microsoft.windows.ai.languagemodel is missing from Windows

Open riverar opened this issue 3 months ago • 7 comments

Describe the bug

When attempting to use Phi Silica APIs, an exception is thrown:

Limited Access Feature is not available: com.microsoft.windows.ai.languagemodel. Status: 3'

Windows Insider and Production builds appear to be missing this LAF, rendering all Phi Silica APIs useless.

Steps to reproduce the bug

  1. Start AI Dev Gallery
  2. Observe generative samples do not work

Expected behavior

No response

Screenshots

No response

NuGet package version

Windows App SDK 1.8.1: 1.8.250916003

Packaging type

Packaged (MSIX)

Windows version

Insider Build (xxxxx)

IDE

Visual Studio 2022-preview

Additional context

No response

riverar avatar Oct 05 '25 21:10 riverar

Looks like this LAF is only officially available in Canary builds (27954+), which is unacceptable.

Workaround for everyone else:

  1. Run the commands:
psexec -i -s C:\windows\system32\reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel\LimitedAccessFeatures\com.microsoft.windows.ai.languagemodel" /ve /d "lEvcaWXLeE7hlhRjHesd6aYV2t/sIbX1KbCLQ3cg+ts=" /reg:32 /f
psexec -i -s C:\windows\system32\reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel\LimitedAccessFeatures\com.microsoft.windows.ai.languagemodel" /ve /d "lEvcaWXLeE7hlhRjHesd6aYV2t/sIbX1KbCLQ3cg+ts=" /reg:64 /f
  1. Reboot.

riverar avatar Oct 05 '25 22:10 riverar

@riverar but what about separate apps that want to use Phi Silica?

On Windows 11 25H2 (Release channel), instructions above fixed AI Dev Gallery, but they don't make this code below work - Access Denied no matter what branch of Windows App SDK is used (1.8 production or 2.0 experimental):

Image

danielkornev avatar Oct 09 '25 23:10 danielkornev

@danielkornev I'm seeing that too; I haven't had time to fully debug it yet.

Some tips:

  • If you're unpackaged, that's not supported anymore.
  • If you're packaged w/ full trust, verify you have systemAIModels rescap.
  • If you're packaged w/o full trust, ensure you have the systemAIModels and packageManagement rescaps.
  • Double check Settings > Privacy and Security >Text and image generation > Let apps use [...] is toggled to On.

riverar avatar Oct 10 '25 00:10 riverar

Update: Seems to be working well now, perhaps some updates were missing?

Tested on 26220.6760 and 6772 / 2025-09 Phi Silica version 1.2509.1022.0 ✅

riverar avatar Oct 10 '25 08:10 riverar

ah, so this won't work on 25H2 (26200.6725)?

danielkornev avatar Oct 10 '25 15:10 danielkornev

ah, so this won't work on 25H2 (26200.6725)?

Should work the same. Phi Silica APIs are technically GA.

riverar avatar Oct 10 '25 16:10 riverar

did this get fixed? I've worked around it using the 2.0.Experimental1 but don't really want ship with experimental. Last time i heard it was due to be fixed late october

aclinick avatar Nov 18 '25 19:11 aclinick