System.Web.Services.Protocols.SoapException:服务器无法处理请求。 ---> System.InvalidOperationException:生成XML文档时出错。 ---> System.InvalidOperationException:不应预期类型System.Data.Entity.DynamicProxies.TblClass_CB0898130CEB61F2BF7811D36F0649A38024A6AF2DBD8EA0863E69ED7C10F01B。使用XmlInclude或SoapInclude属性可以指定静态未知的类型。 在Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write3_TblClass(String n,String ns,TblClass o,Boolean isNullable,Boolean NeedType) 在Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write16_ListClassResponse(Object [] p) 在Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer25.Serialize(Object objectToSerialize,XmlSerializationWriter writer) 在System.Xml.Serialization.XmlSerializer.Serialize处(XmlWriter xmlWriter,对象o,XmlSerializerNamespaces命名空间,字符串encodingStyle,字符串id) ---内部异常堆栈跟踪的结尾--- 在System.Xml.Serialization.XmlSerializer.Serialize处(XmlWriter xmlWriter,对象o,XmlSerializerNamespaces命名空间,字符串encodingStyle,字符串id) 在System.Web.Services.Protocols.SoapServerProtocol.WriteReturns(Object [] returnValues,Stream outputStream) 在System.Web.Services.Protocols.WebServiceHandler.WriteReturns(Object [] returnValues) 在System.Web.Services.Protocols.WebServiceHandler.Invoke() ---内部异常堆栈跟踪的结尾--- 异常详细信息:System.ServiceModel.FaultException:System.Web.Services.Protocols.SoapException:服务器无法处理请求。 ---> System.InvalidOperationException:生成XML文档时出错。 ---> System.InvalidOperationException:不应预期类型System.Data.Entity.DynamicProxies.TblClass_CB0898130CEB61F2BF7811D36F0649A38024A6AF2DBD8EA0863E69ED7C10F01B。使用XmlInclude或SoapInclude属性可以指定静态未知的类型。 在Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write3_TblClass(String n,String ns,TblClass o,Boolean isNullable,Boolean NeedType) 在Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriter1.Write16_ListClassResponse(Object [] p) 在Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer25.Serialize(Object objectToSerialize,XmlSerializationWriter writer) 在System.Xml.Serialization.XmlSerializer.Serialize处(XmlWriter xmlWriter,对象o,XmlSerializerNamespaces命名空间,字符串encodingStyle,字符串id) ---内部异常堆栈跟踪的结尾--- 在System.Xml.Serialization.XmlSerializer.Serialize处(XmlWriter xmlWriter,对象o,XmlSerializerNamespaces命名空间,字符串encodingStyle,字符串id) 在System.Web.Services.Protocols.SoapServerProtocol.WriteReturns(Object [] returnValues,Stream outputStream) 在System.Web.Services.Protocols.WebServiceHandler.WriteReturns(Object [] returnValues) 在System.Web.Services.Protocols.WebServiceHandler.Invoke() ---内部异常堆栈跟踪的结尾---