UWP troubleshooting

A forum dedicated to UWP version of LightningChart

Moderator: Arction_LasseP

Arction_LasseP
Posts: 122
Joined: Wed Mar 27, 2019 1:05 pm

UWP troubleshooting

Post by Arction_LasseP » Wed Oct 13, 2021 11:17 am

UWP projects have some known issues. We list the most common issues and potential fixes for them here. These are often not related to LightningChart but to UWP in general. Therefore, the suggested fixes can work also in projects not related to LightningChart.

Version 1903 not working
-Might give error such as Build error MSB4166: Child node "2" exited prematurely. This is a known issue specific to 1903. The best fix is to simply use different target version. Microsoft recommends targeting version 2004 (build 19041) instead.

Debug build not working
-In some UWP versions, for instance version 2004, debug build might not run giving error: Run Error: an unhandled win32 exception occurred in [3088] (the number is different for different builds). In these cases, make sure you have added <EnableTypeInfoReflection>false</EnableTypeInfoReflection> line to you csproj file to the respective Propertygroup (Debug|x86, Release|x86 etc.). For example:

Code: Select all

  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    <DebugSymbols>true</DebugSymbols>
    <EnableTypeInfoReflection>false</EnableTypeInfoReflection>
    <OutputPath>bin\x86\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
    <NoWarn>;2008</NoWarn>
    <DebugType>full</DebugType>
    <PlatformTarget>x86</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
  </PropertyGroup>
Release build not working
-Try disabling Compile with .NET Native tool chain via project’s Properties -> Build

Activation of Windows Store App 'Application name' failed
-Try cleaning the solution. Delete bin and obj folders and rebuild as instructed here:
https://docs.microsoft.com/en-us/previo ... dfrom=MSDN

Processing Resources failed with error : Duplicate Entry.
-Alternatively complains about Conflicting values for resource. In these cases, try repairing Visual Studio. Open "Visual Studio Installer" and do a "Repair" procedure (behind More combo box).