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?

Richard Chambers
  • 16,643
  • 4
  • 81
  • 106
Naresh
  • 636
  • 2
  • 7
  • 18
  • What's the result if you generate the package manually on local machine and use this package? – tear Nov 03 '17 at 08:23
  • we don't see the exception, when the package is built on local machine – Naresh Nov 03 '17 at 09: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? – starian chen-MSFT Nov 06 '17 at 01: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 06 '17 at 17:51
  • What do you mean debug build? You can share a simple project on the OneDrive if you can reproduce this issue. – starian chen-MSFT Nov 07 '17 at 09:16

1 Answers1

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!

Naresh
  • 636
  • 2
  • 7
  • 18