To be compliant with standard practice for C# programmers, we do not force the assembly to be signed with a FairCom key. This allows developers to sign with their own key, which they can keep secret.
Strong Signing (releases prior to V10.3)
Programming in the .NET environment requires a few steps that should be addressed.
Prior to FairCom DB V10.3, the FairCom.CtreeDb assembly was strong signed, and when one application included a reference to the assembly, it had to be strong signed as well.
To instigate the strong signing process, modify/include the following line in Assemblyinfo.cs (shown in the Solution Explorer) for C# projects:
[assembly: AssemblyKeyFile("c:\\FairCom\\ctreeSDK\\ ctreedotNET\\faircom.snk")]
For Visual Basic projects, modify/include the following line in AssemblyInfo.vb:
<Assembly: AssemblyKeyFileAttribute
("c:\\FairCom\\ctreeSDK\\ctreedotNET\\faircom.snk ")>
For Delphi projects, modify/include the following line in AssemblyInfo.pas:
[assembly: AssemblyKeyFile('c:\\FairCom\\ctreesdk\\ctreedotnet\\faircom.snk')]
If your installation directory structure is different from the structure used when this project was created, the file faircom.snk may not be found. In this case, you will receive the following error:
Error creating assembly manifest:
Error reading key file 'c:\\FairCom\\ctreeSDK\\ctreedotNET\\faircom.snk '
- The system cannot find the file specified.
Or :
Cryptographic failure while signing assembly
'C:\FairCom\ctreeTutorials\ctreedotNET\C#\Tutorial1\obj\Debug\Tutorial1.exe'
-- 'Error reading key file 'c:\\FairCom\\ctreeSDK\\ctreedotNET\\faircom.snk'
-- The system cannot find the file specified.
If you receive one of these errors, please correct the path to the faircom.snk key file.