MdilXapCompile.exe -- Windows Phone Device Deployment Error - c#

I'm trying to deploy my appo to my Lumia 930 so I can test it on something other than an emulator, but every time I hit F5 it basses the build but crashes on deplyment.
MIDLXapCompile log file:
CrossGen failed
Error processing assembly C:\Users\mrrey_000\Dropbox\Dev\Windows Store\AnimeWatcherXYZ EX Summer\AnimeWatcherXYZ.WindowsPhone\obj\ARM\Debug\MSIL\Microsoft.Advertising.Mobile.Display.winmd
Raw error code: 2148733978
I tried deleting the reference to the Microsoft Advertising SDK and applying i oce again, I've also tried to remove the previous version of the app from my device - didn't help.
And yeah, I'm deploying a DEBUG package, not RELEASE.
How can I fix this?

Related

I'm not able to build my unity project into apk

I'm not able to build my unity project into apk, whenever i try to build it throw errors
I'm using unity 2020.3.21
I'm using api level 31 because i want to submit the update of my game on playstore and now they changed the api level to 31.
errors
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl'.
> Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with -
The other error
Could not determine the dependencies of task ':unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl'.
> Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 17s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
As i can see in the error it is mentioned that Build Tools revision 33.0.0 is corrupted i already renistalled using the android studio but still the same error or maybe i did it wrong. if you know anything about this error then you are welcome any help should be appericiated.
try to install via unity package manager instead of android studio since it may have different file names for the different applications
hope this helps!

Visual Studio 2019 crash doing literally anything conntected to Windows Forms Designer Package (?)

I wanted to get VS Community 2019 after using 2017 for some time because i still had it.
Uninstalled VS2017 and installed VS2019
Now, i have done this today and tried reinstalling 2 times now.
My issue is: When i open VS2019 everything is normal. It is showing me all the options you have in the splashscreen, i can click on "Continue without code" without a problem. But if i try to open a .sln file, the Import Export Settings, create a new Project or open options the program crashes without a message, sometimes i get one. It is telling me:
The "Windows forms designer package" packe did not load correctly... (pointing me to an xml for logs)
I open the Activity Monitor Log and at place 643, ERROR:
CreateInstance failed for package [Windows Forms Designer
Package]Source: 'mscorlib' Description: Exception has been thrown by
the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.TypeLoadException: Could
not load type 'System.Drawing.Design.ToolboxService' from assembly
'System.Drawing.Design, Version=4.0.0.0, Culture=neutral
And so on..
GUID: {7494682B-37A0-11D2-A273-00C04F8EF4FF}
HR: 80004005 - E_FAIL
Source: VisualStudio
I can't really figure out how to fix this, any tips or ideas are appreciated.
Thank you in advance, even if it doesn'T work. Trying is everything!
I updated windows until there were no more updates and rebooted my pc a couple of times, now it works.

Deployment failed with HRESULT:0x80073CF9/Deployment Add operation failed with error 0x80070002

I am trying to deploy my Windows Universal test App built in Visual Studio 2015 RC on a recently upgraded HP Windows 10 tablet.
But app fails to install. The same application is correctly installed on my Windows 10 Laptop.
Complete error :
"Add-AppxPackage : Deployment failed with HRESULT:0x80073CF9, Install
failed. Please contact your software vendor.
Deployment Add operation with target volume C: on Package
2ccd2f92-3e7f-4781-94d4-77de6896ad81_2015.810.607.4634_neutral_~_432wcw9hw150w from:() failed with error 0x80070002. See
http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
NOTE: For additional information, look for [ActivityId]
45afcb8b-d363-0002-58da-af4563d001 in the Event Log or use the command
line Get-AppxLog -ActivityID 45afcb8b-d363-0002-58da-af4563d001
At C:\myapp\Add-AppDevPackage.ps1:388 char:13
+ Add-AppxPackage -Path $DeveloperPackagePath.FullName -ForceApplicati ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\myapp\p....1.0.3_ARM.appbundle:String) [Add-AppxPackage],
IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
Error: Could not install the package."
Tried the fix from https://support.microsoft.com/en-us/kb/910336.
Also checked the reference links in error but no helpful diagnosis for this error code is given.
Earlier I was able to install test apps on Windows 8.1 version using same process. Can it be due to Windows 10 upgrade? Any ideas?
It looks like the problem occurs only when System login is through Microsoft Account.
I removed the MS account and used the local Device Account. It fixed the problem.
Still not aware of the exact root cause. Must be something to do with Account permissions. (Although MS account I used had Admin privileges.)
I was met with the same problem with same error code. But in my case, in the phone earlier the project with the same App name was present, and I was trying to deploy the App of next version with a change in App certificate.
So, uninstalling the previous App from phone, and re-installing the App with certificate worked for me.
Some interesting hint direct from Microsoft Forum: https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_store/help-with-0x80073cf9-on-windows-10/a1bd57d1-4bfe-4f9d-91c2-0a87c596f983
Add-AppxPackage: Deployment failed with HRESULT: 0x80073CF9, Install failed.
Please contact your software vendor. (Exception from HRESULT: 0x80073CF9)
For rectifying this you only need to run PowerShell as admin

Error deploying to AWS through visual studio

My co-worker is able to deploy our projects to AWS Elastic beanstalk fine. However I have issues on both my work machine and my home laptop. Both computers have the same error in AWS window pane.
I get a pop up as follows:
Deployment of the website failed due to errors during build of the deployment archive,
check visual studio output window 'Build' and/ or 'Amazon Web Service' panes for more details.
Then in the amazon window pane I get a different error everytime I try to run the deployment.
Example 1:
...package build 'CopyPipelineFiles': error in 'C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets' at (1413,5): Copying file Web.config to obj\AmazonDev\TransformWebConfig\original\Web.config failed. Could not find file 'Web.config'.
Example 2:
...package build 'TransformXml': error in 'C:\Users\Andrew\colony\colony-website\Colony.Web\Colony.Web.csproj' at (840,5): Could not open Transform file: Could not find file 'C:\Users\Andrew\colony\colony-website\Colony.Model\Web.AmazonDev.config'.
Seems to be a different error each time -- I'm not sure how to even begin to look for any issues.
Jim Flangagan's comment is the answer: ReSharper 8.2 is causing this problem. To resolve either disable resharper ( Tools>Options>ReSharper>General>Suspend Now) or upgrade Resharper.

Windows 8 Blank App + DEP0700 error

I've found a few posts mentioning this error, but none that have helped. I created a new C# Windows Store project, and when I try to build and run it on the simulator, I get the following error in visual studio:
Error 1 Error : DEP0700 : Registration of the app failed. error 0x80072EE4: The Visual Elements extension failed while processing the Notification element. (0x80073cf6) TestDeploy
Here are the details from running a Power Shell command mentioned in a different post:
12/18/2012 3:03:59 PM 404 Error error 0x80073CF6: AppX Deployment operation failed. The specific error text for this failure is: error 0x80072EE4: The Visual Elements extension failed while processing the Notification element.
12/18/2012 3:03:59 PM 401 Error Deployment Register operation on Package cc8bb3bb-d444-4dbe-ae12-64684b12b727_1.0.0.0_neutral__2awvr17ztw74c from: (C:\Users\myself\documents\visual studio 2012\Projects\TestDeploy\TestDeploy\bin\Debug\AppX\AppxManifest.xml) failed with error 0x80073CF6. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
12/18/2012 3:03:59 PM 605 Information The last successful state reached was PackagesInUseClosed.
12/18/2012 3:03:59 PM 300 Error error 0x80073CF6: Cannot register the cc8bb3bb-d444-4dbe-ae12-64684b12b727_1.0.0.0_neutral__2awvr17ztw74c package due to the following error: Package could not be registered.
.
12/18/2012 3:03:59 PM 316 Error error 0x80072EE4: Cannot register the cc8bb3bb-d444-4dbe-ae12-64684b12b727_1.0.0.0_neutral__2awvr17ztw74c package because the following error was encountered during the registration of the windows.visualElements extension: <Error message string not found>.
12/18/2012 3:03:59 PM 306 Error error 0x80072EE4: While installing the cc8bb3bb-d444-4dbe-ae12-64684b12b727_1.0.0.0_neutral__2awvr17ztw74c package, the system failed to register the windows.visualElements extension due to the following error: <Error message string not found>.
12/18/2012 3:03:59 PM 5092 Error error 0x80072EE4: The Visual Elements extension failed while processing the Notification element.
12/18/2012 3:03:57 PM 10002 Information Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\4850558d-7f7f-4109-9376-3b78bf5acc86_S-1-5-21-1715567821-179605362-839522115-27106_1.rslc for Register Operation on Package cc8bb3bb-d444-4dbe-ae12-64684b12b727_1.0.0.0_neutral__2awvr17ztw74c.
12/18/2012 3:03:57 PM 603 Information Started deployment Register operation on a package with main parameter: file:///C:/Users/myself/documents/visual%20studio%202012/Projects/TestDeploy/TestDeploy/bin/Debug/AppX/AppxManifest.xml. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
12/18/2012 3:03:57 PM 301 Information The calling process is C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
Any ideas? I've given full control to everyone on the project, have restarted multiple times, tried reinstalling visual studio, and am running Visual Studio as an administrator. Any help would be appreciated!
I got this to "work" by killing and restarting explorer.exe based on suggestions from a different google search I found. Doesn't really make sense to me, or seem to work reliably, but it does work sometimes at least... o.O
edit
A more permanent solution that worked was some combination of reinstalling Visual Studio 2012 and installing Visual Studio Update 1.
I was getting the same error and in my case neither cycling explorer.exe nor uninstalling/reinstalling Studio 2012 Ultimate with Update 3 worked.
What did work was starting up Visual Studio 2012 with "run as Administrator"
Seems, the issue has to do something to installing app both to local machine and to simulator
My case is i duplicate a WP 8.1 project and add merge some code to the duplicated project.
After i done the merge, I got "Package can't be registered" message when i deploy it to emulator.
But my original WP 8.1 project is successfully running on the emulator.
The root cause is i delete some app logo png image.
The VS2013 wont tell u that image is missing but display "Package can't be registered".
Hope this helps.
This happened to me after uninstalling a custom app that was installed using VS and trying to re-install a new version through either VS or directly using the Add-AppDevPackage.ps1 script
While it is not what you want to hear, a reboot fixed this for me. I tried killing the explorer process and restarting it as mentioned above, but this did not work for me.

Categories

Resources