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. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Compiler Error: System.InvalidOperationException: Sequence contains no elements

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

  1. sarage92

    sarage92

    Joined:
    Jun 29, 2015
    Posts:
    1
    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

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,602
    Well, do you use TcpClient anywhere in your scripts?