Consider the following scenario:
- You run a Microsoft .NET Framework 2.0 SP2-based application that calls a Web service by using Microsoft ASP.NET Web service client components. For example, the code of the application is generated by Wsdl.exe, or you call the SoapHttpClientProtocol class in the application.
- The client invokes the Web service call asynchronously.
- The client sends a request to a server.
- The Web service returns a response that contains zero-length content.
In this scenario, when the Web service tries to process this response, a
System.ArgumentNullException exception is thrown together with the following error message:
Value cannot be null.
Note This problem does not occur when the client invokes the Web service call synchronously.