SharePoint 2010 : Word Automation Service issue

silpa charan 1 Reputation point
2020-12-08T08:00:43.15+00:00

Hi Team,

We are having SharePoint 2010 farm, with 2 Web front end servers, 2 Application servers and 2 SQL servers.

We are having a application which uses word automation services, to convert the word document to PDF. All of a sudden the PDF creation is failing when the application is calling conversionJob.Start(). On checking the log files we found there is issue with the word automation web service. Hence on accessing the word automation web service we are getting the below error.

If any of you had faced similar issue and had got a fix for the same. Can you please let us know, what exactly can we do to fix our word automation web service issue as reported below.

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.InvalidOperationException: An exception was thrown in a call to a policy export extension.
Extension: System.ServiceModel.Channels.TransportSecurityBindingElement
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)
--- End of inner ExceptionDetail stack trace ---
at System.ServiceModel.Description.ServiceMetadataBehavior.MetadataExtensionInitializer.GenerateMetadata()
at System.ServiceModel.Description.ServiceMetadataExtension.EnsureInitialized()
at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.InitializationData.InitializeFrom(ServiceMetadataExtension extension)
at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.GetInitData()
at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.TryHandleDocumentationRequest(Message httpGetRequest, String[] queries, Message& replyMessage)
at System.ServiceModel.Description.ServiceMetadataExtension.HttpGetImpl.ProcessHttpRequest(Message httpGetRequest)
at SyncInvokeGet(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

Thanks and Regards,
S. Vamsi Charan

Microsoft 365 and Office | SharePoint Server | Development
{count} votes

1 answer

Sort by: Most helpful
  1. Echo Du_MSFT 17,316 Reputation points
    2020-12-09T06:38:44.773+00:00

    Hello @silpa charan ,

    Please follow steps:

    1) Go to the Word Automation Service Application path:
    C:\Program Files\Microsoft Office Servers\14\WebServices\WordServer

    2) In that folder will be a web.config and find a binding called “WordServer-Binding-http” (assuming you’re in a non-HTTPs environment of course). Please ensure authenticationMode = IssuedTokenOverTransport and allowInsecureTransport = true.

    <security authenticationMode="IssuedTokenOverTransport" allowInsecureTransport="true" />  
    

    3) Save and reload and BOOM! You should have a normal looking service page. But, you’ll see “Metadata publishing for this service is currently disabled.”

    4) Please back in the web.config. Find the behavior name = “WordServer-ServiceBehavior” and switch httpGetEnabled to true.

    <serviceBehaviors>  
    <behavior name="WordServer-ServiceBehaviour">  
    <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />  
    <serviceDebug includeExceptionDetailInFaults="true" />  
    </behaviour>  
    </serviceBehaviors>  
    

    5) Save and reload, then it's ok.

    You could refer to the following article to get more information:

    Thanks,
    Echo Du

    ===========================

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.