Assume that you host a Microsoft .NET Framework 3.5 Service Pack 1 (SP1)-based Windows Communication Foundation (WCF) service in Internet Information Services (IIS). Then, you specify an IPv6 address for the binding of a service endpoint. However, when a WCF client sends a request to the service, you receive an error message that resembles the following in the Application log:
Description:
Unhandled Exception "The protocol binding '[::1]:<port number>:' does not conform to the syntax for 'http'. The following is an example of valid 'http' protocol bindings: ':< port number>:'."
Stack Trace:
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Unhandled Exception "The protocol binding '[::1]:<port number>:' does not conform to the syntax for 'http'. The following is an example of valid 'http' protocol bindings: ':< port number>:'."
Stack Trace:
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)