Skip to Content
SAP Sourcing and SAP Contract Lifecycle Management

Configure IIS for WordService

Steps to configure Word Service:

1. Open Microsoft Word -> File -> Word Options.

2. Select Add-Ins from the menu at the left.

3. Under View and Manage Microsoft Add-Ins, from the  “Manage” dropdown, select “XML Schemas” and click “Go” .

4. Click Add Schema.

5. In the Schema Settings dialog box, in the location filed, browse to the directory where the Web service is installed and choose the fci.xsd file. Deselect  "Changes Affect Current User Only". Choose OK, and then choose OK.

6. Choose File ->Word Options. In the left-hand menu, choose Advanced.

7. Scroll down to the General section, and choose Web Options.

8. In the Web Options dialog box, choose the Encoding tab. Select Save this document as: Unicode (UTF-8) from the dropdown. Check "Always Save Web Pages in the Default Encoding". Choose OK, and then choose OK.

9. Create the fci directory on the server. Under the fci directory, create the subdirectories “logs” & “temp”.

10. Set the permissions on the above created directories so that the following accounts have full access:

     a. INTERACTIVE

     b. NETWORK

     c. NETWORK_SERVICE

      d. <machinename>\OfficeAutomationUser.

11. Open the web.config file of type “CONFIG”  under the following directory:
inetpub\wwwroot\wordservice\


In the appSettings section, set the fciDir application key value to the fci directory that you created in step 9.
Example:
Set the first node to: <add key=”fciDir” value=”c:\fci”\> (depending on the location of fci directory)


               

12. Open IIS Manager.


13.  Right-click the default Web site and choose Add Virtual Directory.


14. For Alias, enter MachineDPAPI.


15. On the physical path, browse to C:\inetpub\wwwroot and choose Make New Folder. Create a new directory with the name MachineDPAPI and choose Ok.


16. Add a new web.config configuration file to the MachineDPAPI directory on the physical drive. Add the following content to the file, substituting the correct user name and password.
Make sure the type of web.config file is “CONFIG”.

<?xml version="1.0"?>
<configuration>
<identity impersonate="true"
userName="domain\automationUserAccount here"
password="account password here" />
</configuration>

17. Open the command prompt as an administrator.

18. Go to the following directory on the Windows 2008 server on the Command prompt: Windows\Microsoft.NET\Framework64\v2.0.xxx.

19. Enter the Command:

aspnet_regiis -pe "identity" -app "/MachineDPAPI" -prov "DataProtectionConfigurationProvider"

The system should display the following output: Encrypting configuration section... Succeeded!

20. Open the web.config file that you created on MachineDPAPI and copy the generated identity section.

21.  Paste the identity section copied above into the inetpub\wwwroot\WordService -> web.config file before the AUTHENTICATION section, and save the file.

22. In the IIS manager, choose Local Computer Name -> Application Pools. Select Classic.Net AppPool.

23. In the Actions pane of IIS manager, select Basic Settings

24. In the Edit Application Pool dialog box, change the Managed pipeline mode to classic. Set .NET Framework version to .NET Framework v2.0.50727.

25. In IIS Manager, go to Local Computer Name -> Sites -> Default Web Site -> Word Service.

26. In the Action pane, select Basic Settings. In the Edit Applications dialog box, Set Application Pool field to Classic.NET AppPool.

27. In the IIS manager, select Local Computer Name -> Application Pools. Select Classic.NET AppPool. Select “Advanced Settings”.

28.  Under Advanced Settings, in the Recycling section, set Disable Overlapped Recycle to False.

29. Go to Start -> Run -> services.msc.

30. Scroll to World Wide Web Publishing Service and check if it is started.

31. To avoid COM errors when working with Microsoft Word documents in Microsoft Windows 2008, add the following folders: C:\Windows\SysWOW64\config\systemprofile\Desktop  &

C:\Windows\System32\config\systemprofile\Desktop.

Former Member

No comments