[resolved] New user running Unity 4.6 "Unhandled Exception"

Options
Hey im new to photon, im trying out the free version in a fresh project, ive tried starting the project fresh a couple times to see if the errors are going away but they are not, this is the error im getting right from the beginning:

Unhandled Exception: Mono.CSharp.InternalErrorException: Assets/Plugins/ChatApi/ChatPeer.cs(17,16): ExitGames.Client.Photon.Chat.ChatPeer.ChatPeer(ExitGames.Client.Photon.IPhotonPeerListener, ExitGames.Client.Photon.ConnectionProtocol) ---> System.TypeLoadException: Could not load type 'System.Runtime.Versioning.TargetFrameworkAttribute' from assembly 'Photon3Unity3D'.

Ive tried deleting the chatpeer script, ive tried deleting all chatt scripts and all the demo files, bu i keep getting errors, and honestly im afraid to delete something important, hopefully someone here has the answer. Sorry if its been asked befoe or if its really simple, i just want to get started.

EDIT: I've figured it out, im just stupid that's all. The error went away when i deleted the plugin file that comes with PUD and reimported it.

Comments

  • Im also using the free version of unity. here is the full error incase it helps:





    Internal compiler error. See the console log for more information. output was:
    Unhandled Exception: Mono.CSharp.InternalErrorException: Assets/Plugins/ChatApi/ChatPeer.cs(17,16): ExitGames.Client.Photon.Chat.ChatPeer.ChatPeer(ExitGames.Client.Photon.IPhotonPeerListener, ExitGames.Client.Photon.ConnectionProtocol) ---> System.TypeLoadException: Could not load type 'System.Runtime.Versioning.TargetFrameworkAttribute' from assembly 'Photon3Unity3D'.

    at (wrapper managed-to-native) System.MonoCustomAttrs:GetCustomAttributesInternal (System.Reflection.ICustomAttributeProvider,System.Type,bool)

    at System.MonoCustomAttrs.GetCustomAttributesBase (ICustomAttributeProvider obj, System.Type attributeType) [0x00000] in <filename unknown>:0

    at System.MonoCustomAttrs.GetCustomAttributes (ICustomAttributeProvider obj, System.Type attributeType, Boolean inherit) [0x00000] in <filename unknown>:0

    at System.Reflection.Assembly.GetCustomAttributes (System.Type attributeType, Boolean inherit) [0x00000] in <filename unknown>:0

    at Mono.CSharp.TypeManager.IsThisOrFriendAssembly (System.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0

    at Mono.CSharp.TypeManager+Closure.Filter (System.Reflection.MemberInfo m, System.Object filter_criteria) [0x00000] in <filename unknown>:0

    at Mono.CSharp.MemberCache.FindMembers (MemberTypes mt, BindingFlags bf, System.String name, System.Reflection.MemberFilter filter, System.Object criteria) [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.MemberLookupFinal (Mono.CSharp.ResolveContext ec, 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.ConstructorInitializer.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.ExpressionStatement.ResolveStatement (Mono.CSharp.BlockContext ec) [0x00000] in <filename unknown>:0

    at Mono.CSharp.StatementExpression.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

    --- End of inner exception stack trace ---

    at Mono.CSharp.TypeContainer.EmitConstructors () [0x00000] in <filename unknown>:0

    at Mono.CSharp.TypeContainer.EmitType () [0x00000] in <filename unknown>:0

    at Mono.CSharp.RootContext.EmitCode () [0x00000] in <filename unknown>:0

    at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0

    at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0