Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

After upgrade to 4.6.1p2

Discussion in 'Windows' started by TongMing, Dec 22, 2014.

  1. TongMing


    Oct 21, 2014
    @Tautvydas Zilys

    Some code were running well, now throw exception like:

    Exception: The type initializer for 'UnityScript.Lang.UnityRuntimeServices' threw an exception.
    Type: System.TypeInitializationException
    Module: UnityScript.Lang
    InnerException: Could not load file or assembly 'System.Core, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
    AdditionalInfo:<No Data>
    at UnityScript.Lang.UnityRuntimeServices.GetEnumerator(Object obj)

    the source are like:
    var servers:Hashtable = new Hashtable();
    for(var i:System.Collections.DictionaryEntry in servers)

    Could you please explain how to exactly use those containers under new patch? I hope there is a way let me not to change all the Hashtable into Dictionary.
  2. Tautvydas-Zilys


    Unity Technologies

    Jul 25, 2013

    this looks like a regression which happened some time in 4.5.x patch releases. It does not happen in 4.5.3, but it does it happen in 4.6.0 and 4.6.1p2. Thanks for telling us. I'm sorry this slipped through. I'll fill a bug report.

    Unfortunately, no more patch releases are scheduled for the holiday weeks, and after looking into it, I think it would be pretty hard to workaround.