Internal error with Unity 4.3

After I Updated my Project to Unity 4.3 i got the following error as long as i have Photon Network in my Project. I also reimported, redownloaded etc. I am a little lost right now i have no clue what to do to get the Project to run again other then removing photon :/ Theres another thing i should add, i only get the error after i restarted unity at least once after importing i also ran the scene at least once.

Here the error:
Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.TypeLoadException: Could not load type 'System.Func`1' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

at (wrapper managed-to-native) System.Reflection.MonoMethodInfo:get_method_info (intptr,System.Reflection.MonoMethodInfo&)

at System.Reflection.MonoMethodInfo.GetMethodInfo (IntPtr handle) [0x00000] in <filename unknown>:0

at System.Reflection.MonoMethodInfo.GetAttributes (IntPtr handle) [0x00000] in <filename unknown>:0

at System.Reflection.MonoMethod.get_Attributes () [0x00000] in <filename unknown>:0

at System.Reflection.MethodBase.get_IsVirtual () [0x00000] in <filename unknown>:0

at Mono.CSharp.MemberCache.AddMethods (BindingFlags bf, System.Type type) [0x00000] in <filename unknown>:0

at Mono.CSharp.MemberCache.AddMethods (System.Type type) [0x00000] in <filename unknown>:0

at Mono.CSharp.MemberCache..ctor (IMemberContainer container) [0x00000] in <filename unknown>:0

at Mono.CSharp.TypeHandle..ctor (System.Type type) [0x00000] in <filename unknown>:0

at Mono.CSharp.TypeHandle.GetTypeHandle (System.Type t) [0x00000] in <filename unknown>:0

at Mono.CSharp.TypeHandle.GetMemberCache (System.Type t) [0x00000] in <filename unknown>:0

at Mono.CSharp.TypeManager.MemberLookup_FindMembers (System.Type t, MemberTypes mt, BindingFlags bf, System.String name, System.Boolean& used_cache) [0x00000] in <filename unknown>:0

at Mono.CSharp.TypeManager.RealMemberLookup (System.Type invocation_type, System.Type qualifier_type, System.Type queried_type, MemberTypes mt, BindingFlags original_bf, System.String name, IList almost_match) [0x00000] in <filename unknown>:0

at Mono.CSharp.TypeManager.MemberLookup (System.Type invocation_type, System.Type qualifier_type, System.Type queried_type, MemberTypes mt, BindingFlags original_bf, System.String name, IList almost_match) [0x00000] in <filename unknown>:0

at Mono.CSharp.Expression.MemberLookup (Mono.CSharp.CompilerContext ctx, System.Type container_type, System.Type qualifier_type, System.Type queried_type, System.String name, MemberTypes mt, BindingFlags bf, Location loc) [0x00000] in <filename unknown>:0

at Mono.CSharp.Expression.MemberLookup (Mono.CSharp.CompilerContext ctx, System.Type container_type, System.Type qualifier_type, System.Type queried_type, System.String name, Location loc) [0x00000] in <filename unknown>:0

at Mono.CSharp.MemberAccess.DoResolve (Mono.CSharp.ResolveContext ec, Mono.CSharp.Expression right_side) [0x00000] in <filename unknown>:0

at Mono.CSharp.MemberAccess.DoResolve (Mono.CSharp.ResolveContext ec) [0x00000] in <filename unknown>:0

at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec, ResolveFlags flags) [0x00000] in <filename unknown>:0

at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.ResolveContext ec) [0x00000] in <filename unknown>:0

at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec, ResolveFlags flags) [0x00000] in <filename unknown>:0

at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec) [0x00000] in <filename unknown>:0

at Mono.CSharp.Return.DoResolve (Mono.CSharp.BlockContext ec) [0x00000] in <filename unknown>:0

at Mono.CSharp.ExitStatement.Resolve (Mono.CSharp.BlockContext ec) [0x00000] in <filename unknown>:0

at Mono.CSharp.Block.Resolve (Mono.CSharp.BlockContext ec) [0x00000] in <filename unknown>:0

at Mono.CSharp.ToplevelBlock.Resolve (Mono.CSharp.FlowBranching parent, Mono.CSharp.BlockContext rc, Mono.CSharp.ParametersCompiled ip, IMethodData md) [0x00000] in <filename unknown>:0


edit:

I found something else:

MissingMethodException: Method not found: 'System.Threading.Monitor.Enter'.
NetworkingPeer.Connect (System.String serverAddress, System.String appID) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:184)
PhotonNetwork.Connect (System.String serverAddress, Int32 port, System.String appID, System.String gameVersion) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonNetwork.cs:1022)
PhotonNetwork.ConnectUsingSettings (System.String gameVersion) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonNetwork.cs:907)
NetworkManager.Start () (at Assets/Scripts/Network/NetworkManager.cs:14)

Comments

  • I figured it out probabl didnt realy had something to do with unity 4.3. The Target of my Framework was changed and then the Photon stuff did not compile anymore.
  • So i guess i was to fast, the problem did reappear. I realy have no clue what i am doing wrong. Maybe it had something to do with me installing VS 2013? Anyway, i can not get it going for my life and i dont know which mscorlib.dll i have to copy where my guess is that i need a certain version in a certain folder of unity because i saw something in there forums, but i dont know which version i need.

    I hope someone can help me on this i am realy lost right now.

    Regards, KeySam
  • Huh. That looks nasty.
    Usually, PUN and Photon libs don't have this issue. I am running 4.3 too.
    What version of PUN do you use and which export-platform do you set?
    Did you try to import PUN into a new, empty project, too? Does it fail out of the box? If so, you should report this to Unity as bug.