Licensing error 2 (Error writing license file)
Symptoms
When activating a license, Error writing license file (2) is displayed.
Cause
The license file can not be (over)written.
Solution
On Windows
Quick solution
Right click the BricsCAD icon and choose Run as administrator.
Preferred solution
- Make sure the permissions on following folders are full access for everyone:
C:\ProgramData\Bricsys
%SystemDrive%\Users\All Users\Reprise
%SystemDrive%\Users\All Users\Bricsys
on Windows XP:
%SystemDrive%\Documents and Settings\All Users\Application Data\Reprise
%SystemDrive%\Documents and Settings\All Users\Application Data\Bricsys
- If a license file exists in the Bricsys folder mentioned above, make sure it is not read-only and not opened in some editor.
On Linux
- Make sure the directory /var/bricsys exists with full write/read access for every BricsCAD user. Normally the BricsCAD installer creates this directory with proper permissions. With Custom installations (for instance using a downloaded archive without installer) it has to be created manually.
- Also, /var/tmp should exist with read/write access when running BricsCAD.
If the "Unable to create license file (). (Error code 2)" or "No rehostable hostid top-level dir. (Error code -148)" errors appear, to activate BricsCAD on Fedora or openSUSE, use this workaround:
Close BricsCAD dialogs > Open terminal > type "sudo chmod -R 777 /var/bricsys" > press Enter > enter password > press Enter > start BricsCAD
On OSX
- Make sure the permissions on /var/tmp/bricsys give full access for everyone.
- If a license file exists in /var/tmp/bricsys, make sure it is not read-only and not opened in some editor.