The WCF service that uses the .NET Framework 3.5 does not support the Windows Azure feature that rewrites the SERVER_PORT variable

Article translations Article translations
Article ID: 975525 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

All HTTP requests that are sent to a service that is hosted in Microsoft Windows Azure pass through a load balancer. The load balancer redirects each incoming request to one of several identical nodes in the Windows Azure subnet. Each node runs an instance of the service on an arbitrary port. The arbitrary port is not the real port that receives the request. For example, you send a request to the following URL:
http://myapp.cloudapp.net:80
The load balancer redirects this request to a node that resembles the following:
http://internalazurenode:20000
Windows Azure has a feature that rewrites the SERVER_PORT variable by using the port number from the HTTP_HOST variable. Then, you can get the public URL of the current service by checking the HttpContext.Current.Request.Url variable. However, the WCF service that uses the Microsoft .NET Framework 3.5 does not support this feature. Therefore, the service fails when it calls the Lookup method.

RESOLUTION

This hotfix updates the transport manager and the endpoint message filter so that they ignore the port information. This behavior enables the WCF service to support the Windows Azure feature that rewrites the SERVER_PORT variable.

Windows Vista and Windows Server 2008

To resolve this problem in Windows Vista or in Windows Server 2008, download and apply the hotfix that is described in Microsoft Knowledge Base article 981001. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
981001 A hotfix rollup is available for Windows Communication Foundation in the .NET Framework 3.5 SP1 for Windows Vista SP2 and Windows Server 2008 SP2

Windows 7 and Windows Server 2008 R2

To resolve this problem in Windows 7 or in Windows Server 2008 R2, download and apply the hotfix that is described in Microsoft Knowledge Base article 981002. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
981002 A hotfix rollup is available for Windows Communication Foundation in the .NET Framework 3.5 SP1 for Windows 7 and Windows Server 2008 R2

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 975525 - Last Review: October 7, 2011 - Revision: 4.0
APPLIES TO
  • Microsoft .NET Framework 3.5 Service Pack 1
Keywords: 
kbexpertiseadvanced kbsurveynew kbqfe KB975525

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com