I get the following message when Deploying in Visual Studio however the app deploys fine and has no issues on the device.
Deployment of application to device failed.
Deployment failed with error: ‘0x80070126’. Please try again. If the problem continues, try restarting your Windows Phone and repairing Visual Studio for Windows Phone.
The only thing I can find on google is this, and the fix was to update to the newest version of Unity. I was using 4.3.3 when I was having this problem and I’m still experiencing it on 4.3.4, though I realize that is not the Unity version they were referring to. I have also tried to repair Visual Studio and restart my phone without success, however when deploying an empty project the error doesn’t appear.
I ignored it initially since it seemingly had no impact on the build but after submitting a beta version to Microsoft I am having trouble downloading it from the store. It downloads fine but after it begins installing it says “We’re having trouble installing this app…”. I can’t help but think these issues are related.
Has anyone experienced either issue?
Notes:
Operating System: Windows 8.1
Unity Version: 4.3.3/4.3.4
Device: Nokia Lumia 520/Samsung ATIV
Visual Studio: Express 2012 for Windows Phone
Thanks, I will. Is this happening on both of your devices? It says I don’t have permission to download the app, did you publish it as beta? If so, you’ll need to add my email to the list of people that can download it. Please add permission to your Unity forum account to receive messages so I could PM it to you :).
So I finally got to the bottom of it. Turns out Assembly-UnityScript.dll can not exceed a certain amount in size (around 9.5MB), or you receive this error message which prevents the app installing correctly when downloading from the store. I was able to take some of the unused scripts out of the project which allowed it to get under this limit.
I just hit this today. I do not have Assembly-UnityScript.dll at all and my Assembly-CSharp.dll is only 2.2 megs. I had the project working fine up until yesterday, then this suddenly begun. I am using 4.3.3 and I have the issue on two different phones (820/920), so it does not seem to be an issue with the phone.
Building and deploying a small test project from Unity also works.
The way I was able to solve it was to create an empty project and slowly add more and more of the original project building with every addition until it came up. When the error finally came up I removed one of the components that had been there for many builds before and the problem went away. I tried a bunch of different combinations of which components to keep and remove and there seemed no importance on what was kept/lost just the fact that the project was lighter script-wise. Whenever the .dll got too big (for me approximately over 9.5mb) I receive this error.
The only thing I can really recommend is a similar approach. See if removing a couple bigger scripts that have previously built successfully fixes the problem. I’d be interested to know the answer, because I’m eventually going to have to deal with it again.
@Tautvydas Zilys Sorry I meant to get back to this and forgot. I’m not sure it’s worth submitting a bug until there’s a more concrete cause of the problem. It seems it could be caused by something else as well based on fehaar’s experience.
The same message appeared to me. The problem was that my phone storage had only 992Kbytes free spasce.
I beleive if you free up some space this message will disapear.