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. Dismiss Notice

FileNotFoundException when entering playmode

Discussion in 'Unity Version Control' started by Falondrian, Feb 1, 2022.

  1. Falondrian

    Falondrian

    Joined:
    Nov 1, 2017
    Posts:
    72
    Unity 2020.3.16
    Version Control 1.15.12

    Hello,

    everytime I enter playmode with the debugger attached, I get the following exception on PlasticApp.cs::InitLocalization(146):

    System.IO.FileNotFoundException: Could not load file or assembly 'unityplastic.XmlSerializers' or one of its dependencies
    File name: 'unityplastic.XmlSerializers'
    at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x00076] in <695d1cc93cca45069c528c15c9fdd749>:0
    at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName,System.Security.Policy.Evidence)
    at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
    at (wrapper remoting-invoke-with-check) System.AppDomain.Load(System.Reflection.AssemblyName)
    at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00005] in <695d1cc93cca45069c528c15c9fdd749>:0
    at System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly (System.Type type, System.String defaultNamespace, System.Xml.Serialization.XmlSerializerImplementation& contract) [0x0006c] in <0f9699188f0c414ea6fb5557f5c16d15>:0
     
  2. Sravzz

    Sravzz

    Unity Technologies

    Joined:
    May 13, 2020
    Posts:
    29
    Hello,
    Thanks for reporting this issue. I am discussing this issue with team will get back on this shortly.
     
    Last edited: Feb 2, 2022
  3. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    429
    Hi @Falondrian,

    Sorry to hear that you are experiencing this issue. I believe it may be because the plugin does not support that version of Unity. The supported versions are stated here. And they are:
    • 2019.4.32f1 or later
    • 2020.3.20f1 or later
    • 2021.1.25f1 or later
    • 2021.2.0b16 or later
    • 2022.1.0a12 or later
    Please can you try upgrading your project to 2020.3.20f1 or later and let me know if it alleviates the issue?

    Hope this helps.
     
  4. Falondrian

    Falondrian

    Joined:
    Nov 1, 2017
    Posts:
    72
    Hello, sorry I misstyped above - I am on 2020.3.26, so the version compability doesn't seem to be the issue.
     
  5. Sravzz

    Sravzz

    Unity Technologies

    Joined:
    May 13, 2020
    Posts:
    29
    Hello, I tried with latest 2020.3.26f1 and don't see any issues. Please try to upgrade and try. Thanks!
     
    Last edited: Feb 2, 2022
  6. Falondrian

    Falondrian

    Joined:
    Nov 1, 2017
    Posts:
    72
    Hello, maybe you do not see it because of your visual studio settings. I have these settings:
    - VS 2019 Exception Settings window -> set to default
    - VS settings for "Tools for Unity": "Exception support" enabled (the default).

    The mentioned code catches the exception, so no actual harm done. It's just annoying that VS in default settings breaks execution nonetheless, so I would prefer it not to throw in the first place (no idea why it does).

    There is nothing for me to upgrade, I am on 2020.3.26, it still happens.

    Since this seems to be about language, maybe my windows settings help:
    - Windows display language: English (US)
    - Region: Germany
    - Regional Format: German (Germany)
     
    Last edited: Feb 2, 2022
  7. Sravzz

    Sravzz

    Unity Technologies

    Joined:
    May 13, 2020
    Posts:
    29
    Hi @Falondrian, I tried on Windows VM, VS 2019 settings matching yours, I am still not able to reproduce it. Is it possible to send us a repro project to test which will help us to reproduce this issue. Thanks!