Search Unity

`System.Xml.XmlTextReader` doesn't exist in target framework.

Discussion in 'Windows' started by LooZ, Aug 20, 2013.

  1. LooZ

    LooZ

    Joined:
    Nov 23, 2012
    Posts:
    28
    Hi guys,

    we're trying to build our existing project (with Win, Mac, Linux, iOS, Android versions) on Windows Phone. I have Windows 8, Windows Phone 8 SDK, but I still have this errors. Any ideas?

    Error building Player: Exception: Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Xml.XmlTextReader` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.NetworkStream` doesn't exist in target framework.
    Error: type `System.Net.Security.RemoteCertificateValidationCallback` doesn't exist in target framework.
    Error: type `System.Security.Authentication.SslProtocols` doesn't exist in target framework.
    Error: type `System.Net.Security.SslStream` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.NetworkStream` doesn't exist in target framework.
    Error: type `System.Security.Cryptography.X509Certificates.X509Chain` doesn't exist in target framework.
    Error: type `System.Net.Security.SslPolicyErrors` doesn't exist in target framework.
    Error: type `System.Net.Security.RemoteCertificateValidationCallback` doesn't exist in target framework.
    Error: type `System.Net.Security.SslStream` doesn't exist in target framework.
    Error: type `System.Net.Security.RemoteCertificateValidationCallback` doesn't exist in target framework.
    Error: type `System.Net.Security.SslStream` doesn't exist in target framework.
    Error: type `System.Security.Cryptography.X509Certificates.X509CertificateCollection` doesn't exist in target framework.
    Error: type `System.Security.Authentication.SslProtocols` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Security.Cryptography.X509Certificates.X509Chain` doesn't exist in target framework.
    Error: type `System.Net.Security.SslPolicyErrors` doesn't exist in target framework.
    Error: type `System.Security.Cryptography.MD5` doesn't exist in target framework.
    Error: type `System.Security.Cryptography.MD5` doesn't exist in target framework.
    Error: type `System.Security.Cryptography.MD5` doesn't exist in target framework.
    Error: type `System.Runtime.Serialization.SerializationInfo` doesn't exist in target framework.
    Error: type `System.Runtime.Serialization.SerializationInfo` doesn't exist in target framework.
    Error: type `System.Runtime.Serialization.SerializationInfo` doesn't exist in target framework.
    Error: type `System.Runtime.Serialization.SerializationInfo` doesn't exist in target framework.
    Error: type `System.Runtime.Serialization.SerializationInfo` doesn't exist in target framework.
    Error: type `System.Runtime.Serialization.SerializationInfo` doesn't exist in target framework.
    Error: type `System.Xml.XmlNode` doesn't exist in target framework.
    Error: type `System.Xml.XmlNode` doesn't exist in target framework.
    Error: type `System.Xml.XmlNode` doesn't exist in target framework.
    Error: type `System.Xml.XmlNode` doesn't exist in target framework.
    Error: type `System.Xml.XmlNode` doesn't exist in target framework.
    Error: type `System.ComponentModel.TypeDescriptor` doesn't exist in target framework.
    Error: type `System.ComponentModel.TypeDescriptor` doesn't exist in target framework.
    Error: type `System.Net.Security.SslStream` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.NetworkStream` doesn't exist in target framework.
    Error: type `System.Security.Cryptography.X509Certificates.X509Chain` doesn't exist in target framework.
    Error: type `System.Net.Security.SslPolicyErrors` doesn't exist in target framework.
    Error: type `System.Net.Security.RemoteCertificateValidationCallback` doesn't exist in target framework.
    Error: type `System.Net.Security.SslStream` doesn't exist in target framework.
    Error: type `System.Net.Security.RemoteCertificateValidationCallback` doesn't exist in target framework.
    Error: type `System.Net.Security.SslStream` doesn't exist in target framework.
    Error: type `System.Net.Security.SslStream` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.NetworkStream` doesn't exist in target framework.
    Error: type `System.Security.Cryptography.MD5` doesn't exist in target framework.
    Error: type `System.Security.Cryptography.MD5` doesn't exist in target framework.
    Error: type `System.Security.Cryptography.MD5` doesn't exist in target framework.
    Error: type `System.Security.Cryptography.X509Certificates.X509Chain` doesn't exist in target framework.
    Error: type `System.Net.Security.SslPolicyErrors` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.SelectMode` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
    Error: type `System.Net.Sockets.TcpClient` doesn't exist in target framework.
     
  2. BFS-Kyle

    BFS-Kyle

    Joined:
    Jun 12, 2013
    Posts:
    883
    Hi Looz,

    These classes do not exist in Windows Phone 8 and Windows 8's framework. You will have to find an alternative way to do these functions - reading XML, using Sockets and using Security classes.

    The full list of classes available to you with Windows Phone 8 and Windows 8 are:

    Windows Phone 8 - http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207211(v=vs.105).aspx

    Windows 8 - http://msdn.microsoft.com/en-us/library/windows/apps/br230232.aspx

    -Kyle