Runtime: Binary analyzer clrcompression.dll has failed the AppContainerCheck check

Created on 22 Jun 2018  路  6Comments  路  Source: dotnet/runtime

Hi @ericstj I am facing same issue with my app
on Windows App Certification Kit - Test Results

Binary analyzer
Error Found: The binary analyzer test detected the following errors:
File C:\Program Files\windowsapps\myapp.app_1.1.29.0_x86__d0tm94ngvvywp\clrcompression.dll has failed the AppContainerCheck check.
File C:\Program Files\windowsapps\myapp.app_1.1.29.0_x86__d0tm94ngvvywp\clrjit.dll has failed the AppContainerCheck check.

I have tried with compile with .net native tool chain and as well as with x86, x64

I am using windows 10 SDK 17134.
VS 2017 15.7.4.
TargetPlatformVersion 10.0.17134.0
TargetPlatformMinVersion 10.0.16299.0

Its is difficult to reproduce the issue. I have attached project.assets.json.

https://1drv.ms/u/s!AmKlqP-mcmxagepLCnK7hDz5wzHsjA

area-Infrastructure-libraries bug

Most helpful comment

/cc @zamont @joperezr

clrjit.dll: This appears to be a problem with a reference to Microsoft.NETCore.Portable.Compatibility from the GoodsMan project. Microsoft.NETCore.Portable.Compatibility is no longer needed in UAP10.0.16299 as this functionality is now part of the framework. You can simply remove this reference.

clrcompression.dll: This looks ok, I only see this coming from the runtime.win10-x86-aot.Microsoft.NETCore.UniversalWindowsPlatform/6.1.5 package, I double checked it and it does indeed have the appcontainer bit. Are you sure you are publishing the .NETNative version of the application? I'd expect this error if you happened to try to publish the debug/non-NETNative version of the app.

All 6 comments

/cc @zamont @joperezr

clrjit.dll: This appears to be a problem with a reference to Microsoft.NETCore.Portable.Compatibility from the GoodsMan project. Microsoft.NETCore.Portable.Compatibility is no longer needed in UAP10.0.16299 as this functionality is now part of the framework. You can simply remove this reference.

clrcompression.dll: This looks ok, I only see this coming from the runtime.win10-x86-aot.Microsoft.NETCore.UniversalWindowsPlatform/6.1.5 package, I double checked it and it does indeed have the appcontainer bit. Are you sure you are publishing the .NETNative version of the application? I'd expect this error if you happened to try to publish the debug/non-NETNative version of the app.

Thanks @ericstj
Build with .NETNative version is not having clrcompression.dll issue. And after removing Microsoft.NETCore.Portable.Compatibility from GoodsMan remove the error with clrjit.dll as well.
Thanks.

@KalpeshChheda @ericstj When I build release version of x64 for Windows App Store with .NETNative flag, It does not give clrcompression.dll issue while performing Windows Certification Kit check but Application later on crashes with dotnet/runtime#25843 (https://github.com/dotnet/corefx/issues/29016)

@KalpeshChheda @ericstj Issue is resolved for me when you upgrade "Microsoft.NETCore.UniversalWindowsPlatform" to 6.2.2

It fixed me too. Removed Microsoft.NETCore.Portable.Compatibility...

Sounds like this is resolved, closing.

Was this page helpful?
0 / 5 - 0 ratings