Web Config
  • 25 Jan 2024
  • 2 Minutes to read
  • Dark
    Light

Web Config

  • Dark
    Light

Article Summary

In this section you will need to replace the highlighted text with information relevant to your system in order to connect the application to your web platform. In each subsection, the filename and the path to it with be listed. You will need to open these files in Notepad as an administrator in order to find and replace the highlighted text with the information that matches your system.

Add Connection String to configs

**Please note: If you selected Windows Authentication in SQL security your files will need to read as follows: 

DSN" value="Application Name=Contract Insight; data source=Your Database server; initial catalog=ContractInsight; Trusted_connection=yes "


CORE

Filename: C:\inetpub\wwwroot\Core\web.Config

** 2 areas to update **

First (near top of page)

<HangfireConfigurationSection ConnectionString="Application Name=DEP Contract Insight; data source=Your Database server; initial catalog=ContractInsight_Hangfire;user id= Your Username created in SQL;password=Your Password " WorkerCount="2">


Second (To find using Notepad, control F, type in DSN)

<add key="DSN" value="Application Name=Contract Insight; data source=Your Database server; initial catalog=ContractInsight;user id= Your Username created in SQL;password=Your Password" />


ESIGN

Filename: C:\inetpub\wwwroot\Esign\web.Config

** 1 area to update **

 To find using Notepad, control F, type in DSN

<add key="DSN" value="Application Name=Contract Insight; data source=Your Database server; initial catalog=ContractInsight;user id= Your Username created in SQL;password=Your Password" />


GATEWAY

Filename: C:\inetpub\wwwroot\Gateway\web.Config

** 1 area to update **

 To find using Notepad, control F, type in DSN

<add key="DSN" value="Application Name=Contract Insight; data source=Your Database server; initial catalog=ContractInsight;user id= Your Username created in SQL;password=Your Password" />


HANGFIRE

Filename: C:\inetpub\wwwroot\Hangfire\HangfireServer.exe.config
** 5 areas to update **

To find using Notepad, control F, type in DSN

<add key="DSN" value=" data source=Your Database server; initial catalog=ContractInsight;user id= Your Username created in SQL;password=Your Password;Application Name=DEP HFS" />

 

<HangfireConfigurationSection ConnectionString=" data source=Your Database server; initial catalog=ContractInsight_Hangfire;user id= Your Username created in SQL;password=Your Password;Application Name=DEP HFS"

 

Modify the paths below if they are different than highlighted below (Example you use D drive or have one or more folder names prior to Hangfire Example: C:\inetpub\wwwroot\contractinsight\hangfire)


<Setting name="ModelPath" value=" C:\inetpub\wwwroot\Hangfire\NLPModels\Open NLP"></Setting>

<Setting name="DictionaryPath" value=" C:\inetpub\wwwroot\Hangfire\_OCR_dictionaries"></Setting>

<Setting name="DataPath" value=" C:\inetpub\wwwroot\Lucene"></Setting>


**** Open the Hangfire folder and double click on hangfireserver.exe, this will build the tables in the Hangfire Database.  This only needs to be done once, the first time the Hangfire Database is created.  If this produces an error there is an issue with the username/password being used.  A successful run will look like this:

Example of Hangfire Server


OCR

Filename: C:\inetpub\wwwroot\OCR\CobbleStone®.OCRCrawler.exe.config

**3 areas to update **


<add key="DSN" value=" data source=Your Database server; initial catalog=ContractInsight;user id= Your Username created in SQL;password=Your Password;" />

 

<add key="OCRDictionaryPath" value=" C:\inetpub\wwwroot\Hangfire\_OCR_dictionaries "/>

 

<add key="Include" value="Contractinsight"/>

    *Only change Include value if you named your database something other than ContractInsight


API2

Filename: (C:\inetpub\wwwroot\API2\web.Config)
** 3 areas to update **

 

<add name="CSSAPIConnectionString" connectionString=" data source= Your Database server; initial catalog=ContractInsight;user id= Your Username created in SQL; password= Your Password; MultipleActiveResultSets=true;" />

 

<add key="as:Issuer" value=" Your URL" />


<HangfireConfigurationSection WorkerCount="1" PollInterval="30" ConnectionString="Data Source=Your Database server;Initial Catalog=ContractInsight_Hangfire;user id=Your Username created in SQL;password=Your Password">







Was this article helpful?