.net 在VS中以发布模式运行应用程序时,Web服务函数引发异常
我在尝试执行Web服务提供的函数时出错。当我在VS调试模式下运行工具时,函数返回所需的值,但是如果我试图在发布模式下运行应用程序,函数将引发以下异常 消息:.net 在VS中以发布模式运行应用程序时,Web服务函数引发异常,.net,web-services,exception,.net,Web Services,Exception,我在尝试执行Web服务提供的函数时出错。当我在VS调试模式下运行工具时,函数返回所需的值,但是如果我试图在发布模式下运行应用程序,函数将引发以下异常 消息:XML文档(11064)中存在错误。 堆栈跟踪: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Ser
XML文档(11064)中存在错误。
堆栈跟踪:
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
请建议我可以在此处尝试的任何内容。尝试使用此工具跟踪您的web服务呼叫: 看看1064这个角色 你看到内部异常了吗?在序列化异常的情况下,这通常更有趣