0

We are creating appxbundle on VSTS for UWP apps. The builds are successful, however at runtime we are getting exception while accessing the following method:

public static Task<DeviceManagementClient> CreateAsync(IDeviceTwin deviceTwin, IDeviceManagementRequestHandler hostAppHandler);

Exception:

    The specified module could not be found. 
    (Exception from HRESULT: 0x8007007E) at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD) 
at SystemConfiguratorProxyClient.SCProxyClient..ctor() at Microsoft.Devices.Management.SystemConfiguratorProxy..ctor() 
at Microsoft.Devices.Management.DeviceManagementClient.<CreateAsync>d__7.MoveNext() --- 

Build Machine: Windows Server 2012 R2 with Windows 10 SDK Fall creators update

Runtime: Dragonboard with Windows 10 RS3 build

We followed the UWP build template for creating the app packages.

What are we missing?

5
  • What's the result if you generate the package manually on local machine and use this package?
    – tear
    Nov 3, 2017 at 8:23
  • we don't see the exception, when the package is built on local machine
    – Naresh
    Nov 3, 2017 at 9:17
  • Try to generate the package on your build machine manually (MSBuild) and check whether it has the issue. Can you reproduce this issue with a new project? Can you share the detail build log on the OneDrive? Nov 6, 2017 at 1:37
  • sorry I could not get the details, that you have asked for yet. But we observed that this is happening only with release build, local or VSTS. Debug build we don't see this exception.
    – Naresh
    Nov 6, 2017 at 17:51
  • What do you mean debug build? You can share a simple project on the OneDrive if you can reproduce this issue. Nov 7, 2017 at 9:16

1 Answer 1

1

The problem was we had a custom Nuget package which was built in Debug version, hence it was not working in release build configuration. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.