Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Windows Phone 8.10.12393.890 breaks deployment to phone

Discussion in 'Windows' started by drswoboda, Jun 4, 2014.

  1. drswoboda

    drswoboda

    Joined:
    Nov 2, 2012
    Posts:
    18
    I updated my development phone to WP OS version 8.10.12393.890 this week.

    This latest build of the phone OS appears to break the deployment of apps to the phone from Unity v4.3.2 and v4.5.0f6.

    The apps will build, but fail to deploy to phone, and then lock up Unity at the deploying player dialog box. The following error is in the Console:

    ______
    Exception: Deployment failed. Output:
    [15:06:27.627] Windows Phone 8 Runner started.
    [15:06:27.627] Opening XAP file.
    [15:06:27.627] Getting app id.
    [15:06:27.642] Getting app icon.
    [15:06:27.939] Looking for device.
    [15:06:28.017] Connecting to device {30F105C9-681E-420b-A277-7C086EAD8A4E}.
    [15:06:28.830] Installing app {388f5718-bb4f-4d55-b5b0-14b7b81f66eb}.
    [15:06:29.377] Disconnecting from device.
    [15:06:29.377] Deleting app icon.
    [15:06:29.392] System.ArgumentException: The parameter is incorrect.

    at Microsoft.VisualStudio.DeviceConnectivity.Interop.ConManServerClass.InstallApplication(String in_pProductId, String in_pInstanceId, String in_bstrApplicationGenre, String in_bstrAppIconPath, String in_bstrXapPath)
    at Microsoft.SmartDevice.Connectivity.Device.InstallApplication(Guid productId, Guid instanceId, String applicationGenre, String iconPath, String xapPackage)
    at Microsoft.SmartDevice.Connectivity.Wrapper.DeviceObject.InstallApplication(Guid productId, Guid instanceId, String applicationGenre, String iconPath, String xapPackage)
    at Unity.Program.Run(Guid appId, String iconPath, String xapPath, Boolean test)
    at Unity.Program.Run(String xapPath, Boolean test)
    at Unity.Program.Main(String[] args)
    [15:06:29.392] Exiting Windows Phone 8 Runner.
    ______

    You can use the "Windows Phone Application Deployment (8.1) tool to install the app to the phone. The build appears to be successful and will run.

    Using Unity v4.3.2 & v4.5.0
    Using Windows 8.1 Pro (Update 2?)
    Using WP OS 8.10.12393.890
    Using Visual Studio Ultimate 2013 Update 2

    Thanks,
    -David
     
  2. pumpkinszwan

    pumpkinszwan

    Joined:
    Feb 6, 2014
    Posts:
    214
    I have no issues deploying my game to my phone with Unity 4.5, same OS version 8.10.12393.890, Lumia 920. I can deploy directly from Unity 'Build and Run'.

    I have found that certain addons break deployment in 4.5. I can't deploy to Windows 8 due to an addon (if I remove the addon I can deploy). Perhaps you're having a similar issue? Can you deploy a clean sample project with just a simple scene?
     
  3. drswoboda

    drswoboda

    Joined:
    Nov 2, 2012
    Posts:
    18
    Hello Pumpkinszwan,

    I'll try a bare bones project. So far I have tried building and deploying three different projects that worked fine before I updated my Lumia 1020 this week.

    -David
     
  4. GaryMedina

    GaryMedina

    Joined:
    Jun 10, 2014
    Posts:
    6
    I have run into a similar issue. I had to restore my system and I was not able to deploy to WP 8.1.(newest). I tried many uninstalls and reinstalls of Unity and VS2013 without success until now. After uninstall I installed Unity then Windows phone 8 sdk ( http://www.microsoft.com/en-us/download/details.aspx?id=35471 ) and it deployed without issues. I then installed VS2013 w/update 2 and so far all seems fine.
     
  5. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Have you tried Unity 4.5.1?
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    Unity 4.5.1 had no changes that could have affected this.

    @drswodoba: did you check if this is happening on another PC? What happens when you try to build and run an empty project?
     
  7. drswoboda

    drswoboda

    Joined:
    Nov 2, 2012
    Posts:
    18
    After a few hours installing and re-installing Unity versions, I think I have found the reason for my issue. It does not appear to be a Unity issue or an WP8.1, but is a Firewall issue.

    This also appears to be the issue with my other post here: http://forum.unity3d.com/threads/wp-8-1-build-fails-to-create-bin-and-obj-directories.251744/

    I don't think Unity is playing nice with Zone Alarm on my PC. I usually install programs with Zone Alarm off, then let Zone Alarm figure out about the new install during first run.

    It appears that Unity doesn't always get configured correctly. What is strange is that I have had this issue after an install, after many successful builds.

    What has made this difficult to diagnose, is that Unity/Zone Alarm are quietly failing and gave no clue to the reason for failure. That is, Zone Alarm never popped up and said there was an issue, and Unity never gave any error message that pointed to the issue.

    I should have thought about a firewall issue sooner, my bad. But the random nice of this was driving me crazy. Worked one day, but not the next.

    I think this issue is solved. The moderators may delete this thread as I doesn't appear to be a Unity issue, per say. (Though a better failure method would be nice).

    Thanks,
    -David
     
  8. MattEland

    MattEland

    Joined:
    May 13, 2014
    Posts:
    1
    I also am experiencing this issue with Unity and Win Phone. I reset my phone to 8.10.14176.243 but the problem persists. This problem occurs when deploying Universal apps and Win Phone apps using unity 4.5.4f1. When I plug in the phone the computer recognizes it and successfully starts the Windows Phone app on Windows 8.1. However, I do not believe this to be a Unity issue since Visual Studio 2013 also encounters the same problem while trying to deploy to Windows Phone. I will investigate that problem and post any solutions I encounter.