Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MdilXapCompile.exe failed with error code 2001

Release/Debug ARM deploy to device isn't possible. But the build succeeds.

I get following exception:

Severity Code Description Project File Line Error Error : DEP6810 : MdilXapCompile.exe failed with error code 2001. See log file 'C:\Users..\obj\ARM\Debug\MDIL\MDILXapCompileLog.txt' for more details.

MDILXapCompileLog.txt:

CrossGen failed Error processing assembly C:\Users...\obj\ARM\Debug\MSIL\Microsoft.Band.dll Raw error code: 2148733978

Google lead me to following solution:

  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

Doesn't work for me. Any other suggestions?

Thanks in advance

like image 936
T.C Avatar asked Aug 18 '15 03:08

T.C


2 Answers

If WP 8.1, uninstall the app and run deploy, it worked for me.

like image 58
Tiago S Avatar answered Oct 03 '22 04:10

Tiago S


When you deploy the Device make sure to select Debug instead of Release. If you set to Release the app will not be deployed and the above error will occur. Select Debug and set the deployment destination as Device. Unlock the phone and run. It will work.

like image 22
LeoN Avatar answered Oct 03 '22 03:10

LeoN