Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft Band SDK Deploy Error: To ARM in Release: Raw error code: 2148733978

I'm getting the following error when trying to deploy an app with the Microsoft Band SDK. The build config is RELEASE and the target output is ARM. If use DEBUG config, it works.

Error : DEP6810 : MdilXapCompile.exe failed with error code 2001.

I've examined the MDILXapCompileLog and the following is the where the compilation failed:

CrossGen failed 
Error processing assembly [projectpath]...\obj\ARM\Release\MSIL\Microsoft.Band.dll
Raw error code: 2148733978

NOTE: The extra weird part about this situation is that if I only package the app without deploying, I can side-load it to the device and it works as expected.

Here are the csproj sections - Debug/ARM:

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>false</Prefer32Bit>

Release/ARM

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>false</Prefer32Bit>

The only difference I see are the debug symbols, could the Microsoft.Band.dll not have public symbols? Isn't Visual Studio supposed to created them?

like image 724
Lance McCarthy Avatar asked Nov 10 '22 15:11

Lance McCarthy


1 Answers

I noticed that the solution still had the old Band SDK - Preview packages even after updating to the newer SDK. I manually deleted all the nuget items, forced a package refresh and the project now deploys successfully.

Here are the steps:

  1. Close Visual Studio
  2. Navigate to YourSolution/Packages/
  3. Delete everything except packages.config
  4. Reopen the solution in Visual Studio
  5. Right click on solution and select "Manage Nuget Packages"
  6. Click the "Restore" button that appears at the top of the dialog window

Rebuild the solution and it should deploy properly

like image 169
Lance McCarthy Avatar answered Jan 04 '23 03:01

Lance McCarthy