Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Compiler Error: System.InvalidOperationException: Sequence contains no elements

Discussion in 'Windows' started by MasterChris, Nov 12, 2013.

  1. sarage92


    Jun 29, 2015
    i have the same problem! How to fix it? Help me!!!
    Error building Player: Exception: Failed to run assembly converter with command line -platform=wp80 "Temp/StagingArea\Assembly-CSharp-firstpass.dll" "Temp/StagingArea\Assembly-CSharp.dll" "Temp/StagingArea\UnityEngine.dll" "Temp/StagingArea\UnityEngine.UI.dll" "Temp/StagingArea\WinRTLegacy.dll".
    System.Exception: Failed to resolve type System.Net.Sockets.TcpClient. Is type unavailable in target framework?
    � Unity.MetadataContainer.ResolveType(TypeReference type)
    � Unity.MetadataContainer.GetAssemblyForType(TypeReference type)
    � Unity.AssemblyWrapper.CreateMethodWrapper(MetadataContainer metadata, TypeWrapper typeWrapper, MethodDefinition method)
    � Unity.AssemblyWrapper.GetCallableMethods(TypeWrapper typeWrapper, TypeDefinition type, Boolean publicOnly)
    � Unity.AssemblyWrapper.AddType(TypeReference type)
    � Unity.GetTypesStep.Visit(TypeDefinition type)
    � Unity.TypeDefinitionDispatcher.DispatchType(TypeDefinition type)
    � Unity.TypeDefinitionDispatcher..ctor(ModuleDefinition module, ITypeDefinitionVisitor visitor)
    � Unity.GetTypesStep.ProcessModule()
    � Unity.ModuleStep.Execute()
    � Unity.Step.Execute(OperationContext operationContext, IStepContext previousStepContext)
    � Unity.Operation.Execute()
    � Unity.Program.Main(String[] args)
  2. Aurimas-Cernius


    Unity Technologies

    Jul 31, 2013
    Well, do you use TcpClient anywhere in your scripts?