Symptoms
On a computer that is running Windows 7, you experience one or more of the following symptoms.
Symptom 1
Consider the following scenario:
Symptom 2
Consider the following scenario:
Symptom 1
Consider the following scenario:
- You run an asynchronous Web service that uses the Microsoft .NET Framework 2.0 Service Pack 2 (SP2) on a server.
-
The HttpWebRequest asynchronous operation sends a Web request to the Web service. - The Web service throws an exception.
Symptom 2
Consider the following scenario:
- You run a Microsoft .NET Framework 2.0 SP2-based application that calls a Web service by using the Microsoft ASP.NET Web service client components. For example, the application code is generated by the Wsdl.exe process, or the application calls the SoapHttpClientProtocol class.
- The client invokes the Web service call asynchronously.
- The client sends a request to a server.
- The client then receives a Web response that has zero-length content.
Value cannot be null.
Note This problem does not occur when the client invokes the Web service call synchronously.Cause
Symptom 1
This problem occurs because the .NET Framework exception handling does not consider the case in which the HttpWebRequest.EndGetRequestStream method throws an exception when that exception contains a response from the server.
This problem occurs because the .NET Framework exception handling does not consider the case in which the HttpWebRequest.EndGetRequestStream method throws an exception when that exception contains a response from the server.
Resolution
Hotfix information
A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.To download this hotfix, visit the following Microsoft Connect Web site:
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
More Information
For more information about the issues that are described in the "Symptom 1" section, click the following article number to view the article in the Microsoft Knowledge Base:
973134 FIX: The Web service stops responding, and an exception is thrown when you run a .NET Framework 2.0 S-based asynchronous Web service
For more information about the issues that are described in the "Symptom 2" section, click the following article number to view the article in the Microsoft Knowledge Base:973136 FIX: ArgumentNullException exception error message when a .NET Framework 2.0 S-based application tries to process a response with zero-length content to an asynchronous ASP.NET Web service request: "Value cannot be null"