Skip to content

[BUG] System.TypeLoadException: Can't find 'Windows.Services.Store.StoreLicense' #91

@AtlasV1224

Description

@AtlasV1224

Does an issue for this already exist?

  • I have searched the existing issues
  • I have ensured my environment (operating system, app launcher, etc) is up to date

Operating System and Version

linux 6.17.7.arch1-1

Launcher

Lutris (Recommended)

Launcher Installation

Native

Other Install

Installed via pacman, version 0.5.19-6

Wine Version

ElementalWarrior (Recommended)

Affinity Version

Affinity by Canva, Lastest as of 04 Nov 2025, Unsure how find version number

Desktop Environment

hyprland

Description

When running Affinity by Canva through lutris after installation, Affinity splash screen shows, then crashes with Unhandled Exception: System.TypeLoadException: Could not find Windows Runtime type 'Windows.Services.Store.StoreLicense'. error.

Further Info:

During installation when using Affinity-ew.yaml, at step 5.7, downloading WinMetadata.zip via Archive.org set to Download failed when attempting to connect to Archive.org. I retried installation using Select with a copy of WinMetadata obtained from system32 of a windows 11 installation (dual-boot) then compressed to a zip archive which resulted in this crash. Following the crash, I copied the WinMetadata file directly into ~Affinity/drive_c/windows/system32 which resulted in the same crash yet again

This windows 11 install has never had any affinity product installed and only has a local account, no Microsoft account.

Steps to reproduce

  • Install using Guide for Lutris
  • follow all steps through to step 5.7, change WinMetadata.zip location from Download to Select and select a copy of WinMetadata from a local windows installation
  • Continue through the guide until step 6.7, then click Play in lutris

Expected behaviour

Affinity splash screen closes and program GUI shows

Screenshots

Image

Logs

lutris-wrapper: Affinity By Canva
Started initial process 229970 from /home/atlas/.local/share/lutris/runners/wine/ElementalWarriorWine-x86_64/bin/wine /home/atlas/Programs/Affinity/drive_c/Program Files/Affinity/Affinity/Affinity.exe
Start monitoring process.

Unhandled Exception: System.TypeLoadException: Could not find Windows Runtime type 'Windows.Services.Store.StoreLicense'.
   at Serif.Affinity.Application.OnServicesInitialised(IServiceProvider serviceProvider)
   at Serif.Interop.Persona.Application.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1_0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at Studio.Application.Main(String[] args)
Monitored process exited.
Initial process has exited (return code: 0)
Exit with return code 0

Config

No response

Self-service

  • I'd be willing to fix this issue myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionWaiting on ConfirmationWaiting on requester to confirmation that the solution was solvedbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions