<< Click to Display Table of Contents >> Deploying your application |
Besides an usual exe, dll etc files you should ship EasyDotNet.dll (Clarion/.NET assembly DLL) with your end-user application.
Registration-free COM is a mechanism that enables easy deployment of COM components to a machine without the need to register them. Registration-free COM uses manifest to refer to text files with the .manifest extension containing XML, which either defines the identity of an assembly (assembly manifest), together with the binding and activation details of its classes. Manifest file will be created automatically if "Enable Registration-Free Activation" option set On, dll will be copied in application output directory if "Copy to output folder" set On.
If you set "Enable Registration-Free Activation" option Off or it doesn't work then you need to register and /or put it in GAC. You can also put this dll in one folder with your application EXE file.
1. Registering EasyDotNet.dll.
Since EasyDotNet.dll is Clarion/.NET assembly DLL you can register it with Assembly Registration Tool (Regasm.exe). Normally it is installed under
<System Drive>:\<Windows Folder>\Microsoft.NET\Framework\xxxxx\regasm.exe"
where xxxxx - .NET Framework version directory on your PC
We suggest you two ways of registration:
a) register it directly using command line like:
regasm.exe EasyDotNet.dll
b) create REG file using /regfile option. After that you will have a REG file (EasyDotNet.reg) that can be imported into your Windows registry manually or using installation program etc:
regasm.exe /regfile EasyDotNet.dll
2. Adding EasyDotNet.dll into GAC.
GAC (Global Assembly Cache). Each computer where the common language runtime is installed has a machine-wide code cache called the global assembly cache. The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer.
a) | You can use the Global Assembly Cache Tool (Gacutil.exe) to add an assembly to the cache. |
b) | You can use Windows Explorer. In Windows Explorer open <System Drive>:\<Windows Folder>\assembly folder, drag the EasyDotNet.dll into the assembly cache directory. |