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

i have no idea how to fix this error and really need help ITS A BIG ERROR

Discussion in 'Scripting' started by simeon2247, Dec 5, 2014.

  1. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
    okay well i could use any help right now and im really want it to be easy to fix

    [ Internal compiler error. See the console log for more information. output was:
    Unhandled Exception: Mono.CSharp.InternalErrorException: Assets/Photon Unity Networking/Plugins/PhotonNetwork/SocketUdp.cs(28,16): ExitGames.Client.Photon.SocketUdp.SocketUdp(ExitGames.Client.Photon.PeerBase) ---> 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.Expression.IsAccessorAccessible (System.Type invocation_type, System.Reflection.MethodInfo mi, System.Boolean& must_do_cs1540_check) [0x00000] in <filename unknown>:0

    at Mono.CSharp.PropertyExpr.DoResolve (Mono.CSharp.ResolveContext ec) [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.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.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.If.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 ]
     
  2. ZO5KmUG6R

    ZO5KmUG6R

    Joined:
    Jul 15, 2010
    Posts:
    489
    You need to set the .NET Compatibility in the player settings to a different subset.
     
  3. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
    im not sure what you Mean
     
  4. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
    can you give me more Detail Im really Not good at the scripting thing
     
  5. ZO5KmUG6R

    ZO5KmUG6R

    Joined:
    Jul 15, 2010
    Posts:
    489
  6. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
    OO i think i got it
     
  7. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
    okay how to i make it .NET 2.0
    sorry if im being Hard to work with
     
  8. ZO5KmUG6R

    ZO5KmUG6R

    Joined:
    Jul 15, 2010
    Posts:
    489
    Edit>Project Settings>Player

    It's under Other Settings in the inspector pane
     
  9. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
  10. ZO5KmUG6R

    ZO5KmUG6R

    Joined:
    Jul 15, 2010
    Posts:
    489
    It's a dropdown, just set it to .NET 2.0
     
  11. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
    that didn't work
     
  12. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
    i have it set to NET 2.0 nothing
     
  13. ZO5KmUG6R

    ZO5KmUG6R

    Joined:
    Jul 15, 2010
    Posts:
    489
    Usually an issue with importing an assembly comes down to that. As we can tell now that isn't the case. Have you tried importing Photon into a blank project?
     
  14. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
    yeah and it works if i have Photon on its own Project at first now i tried putting it on my main Project and i can't get it to work
     
    Last edited: Dec 5, 2014
  15. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
    this is what i watched to get this far
    yeah i Used his Project from EP 10 and fixed all the Errors then i hit this one and couldn't
    get this one to work
     
    Last edited: Dec 5, 2014
  16. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
    so do you know what to do?
     
  17. simeon2247

    simeon2247

    Joined:
    Apr 25, 2013
    Posts:
    18
    Hey Bro you got Anymore Ideas?