Configuring the Core Assembly Service to use HotDocs Advance

To use HotDocs Advance with the Core Assembly Service, you must configure the Core Assembly Service to communicate with Advance.

AssemblyService Web.config Settings

Web.config Setting Description Example Values Note
TemplateHubApiUrl Deprecated setting, unused by Advance. https://yourorganization.com/HotDocsTemplateHubApi/  
UserServiceAuthority Deprecated setting, unused by Advance. https://yourorganization.com/HotDocsIdentityServer/core/  
CorsOrigin The list of domains allowed to send requests to this instance of the assembly service. The default is “*” which means requests from any domain will be accepted by the assembly service.    
OrphanedSessionExpireTime The length of time you instruct the assembly service to wait before deleting an inactive interview session. An interview session is considered inactive until a browser or API makes a call to the assembly service that uses the session. The default time the service waits before deleting a session is 24 hours.    
StaticFilesCacheExpireTime Sets (in the response header for returned static files) how long the browser retains the file in its cache. This forces the browser to occasionally refresh static files downloaded from the assembly service. This is important so that if the files on the server change, the user’s browser downloads the new files. The default setting is five minutes.    
MaxRepeatCountLimit The maximum number of times a loop in a template (either a REPEAT or WHILE loop) can iterate before the service breaks the loop. This protects the assembly service from a malicious or poorly developed template consuming system resources – a form of a denial of service (DOS) attack.    
MaxRecursionDepthLimit The maximum number of times a computation script can call back to itself before the assembly service breaks the sequence of calls. This protects the assembly service from a malicious or poorly developed template causing a stack overflow in the assembly service.    
AssemblySessionContext The connection string to HotDocs Assembly Service session database.    
AssemblyStorageContext The connection string to HotDocs Assembly Service store database    

To configure the Core Assembly Service to use HotDocs Advance

  1. Open Internet Information Services (IIS) Manager.
  2. Navigate to Server > Sites > Default Web Site.
  3. Right-click the AssemblyService node.
  4. Select Explore.
  5. Edit the Web.config file using a text editor application.
  6. Edit the settings listed in the web.config settings table above.
  7. Save your changes.

Next Steps