Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 在VS中以发布模式运行应用程序时,Web服务函数引发异常_.net_Web Services_Exception - Fatal编程技术网

.net 在VS中以发布模式运行应用程序时,Web服务函数引发异常

.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

我在尝试执行Web服务提供的函数时出错。当我在VS调试模式下运行工具时,函数返回所需的值,但是如果我试图在发布模式下运行应用程序,函数将引发以下异常

消息:
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这个角色

你看到内部异常了吗?在序列化异常的情况下,这通常更有趣