1
Vote

Exception Trying to Access WCF Service

description

Hi,

I am getting below error when trying to browse to WCF Service from IIS -> SharePoint Web Services.
Any Ideas?

Error: Security policy export failed. The binding contains a TransportSecurityBindingElement but no transport binding element that implements ITransportTokenAssertionProvider. Policy export for such a binding is not supported. Make sure the transport binding element in the binding implements the ITransportTokenAssertionProvider interface. ----> System.InvalidOperationException: Security policy export failed. The binding contains a TransportSecurityBindingElement but no transport binding element that implements ITransportTokenAssertionProvider. Policy export for such a binding is not supported. Make sure the transport binding element in the binding implements the ITransportTokenAssertionProvider interface.
at System.ServiceModel.Channels.TransportSecurityBindingElement.System.ServiceModel.Description.IPolicyExportExtension.ExportPolicy(MetadataExporter exporter, PolicyConversionContext policyContext)
at System.ServiceModel.Description.MetadataExporter.ExportPolicy(ServiceEndpoint endpoint)

Thanks

comments

adamtoth wrote May 3, 2013 at 7:53 PM

This is a typical error you see when trying to hit the service in a web browser, and the out-of-box services will give you the same error. These services need to be called via the ServiceApplicationProxy, because that will use the client.config settings to connect to the services properly.

Just using the browser will not enable you to access the service.

Also, there are no MEX endpoints defined to provide a WSDL interface to your services.