Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

UWP il2cpp build failling : System.InvalidOperationException: Operation is not valid

Discussion in 'Windows' started by MagicDesignStudios, Mar 27, 2018.

  1. MagicDesignStudios

    MagicDesignStudios

    Joined:
    Dec 22, 2016
    Posts:
    37
    Build runs fine with all the other platform, but UWP fails.
    Build goes all theway to the «patching assemblies» phase, but fails with the following log :
    Tested on Unity version 2017.0.2p2, and 2017.3.1p2.
    I've tried with every .Net runtime version and compatibility level, without changes to the result.

    Having photon mentionned in the log I've tried to look into that, but the plugin builds fine on its own.

    Any idea about that?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    Can you attach the full editor log?
     
  3. MagicDesignStudios

    MagicDesignStudios

    Joined:
    Dec 22, 2016
    Posts:
    37
    Sure thing, here it is attached. Although there doesn't seem to be much more than a heap of compile warnings.
     

    Attached Files:

  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    Looks like there is a stale PDB or MDB file next to Photon3Unity3D.dll. Look for mismatched timestamps. Try deleting it.
     
  5. MagicDesignStudios

    MagicDesignStudios

    Joined:
    Dec 22, 2016
    Posts:
    37
    Yes, that worked perfectly, thanks!