title: Web service function throwing exception while running application in release mode in VS
body: <p>I am getting a  error while I am trying to execute a function provided by a webservice. While I am running the tool in VS in debug mode the function is returning the desired values, but if I am trying to run the application in the Release mode the function is throwing following exception.</p>
  
  <p>Message : <code>There is an error in XML document (1, 1064).</code></p>
  
  <p>Stack Trace :</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>Please suggest anything which I can try here.</p>