How does GeoBase licensing work?
Licenses
GeoBase searches for a valid license file at runtime. If no license is found, a Trial license will be downloaded.
License files can have any name, but require a .lic extension. They may be used in the following ways:
- Loose - If the license file is located in the same folder as geobase.net.dll it will be located and used automatically.
- Embedded - The license file is embedded into your application.
Embedding a License
To embed a license in your application, follow the steps below:
- Add the license file to your project in Visual Studio.
- Rename the license file to runtime.lic
- Open the properties window for the license and set Build Action to Embedded Resource
- Now when you build your application the license will be embedded in the executable. This will be found by GeoBase at runtime.
Example
Imagine an ASP.Net application with both client and server executables.
- On the server side it is simple to leave the license file in the bin directory of your ASP.Net application.
- On the client side (which is going to be distributed) you must embed the license file in the application executable.
Mobile Licenses
Note that the above discussion relates to the GeoBase SDK on a Desktop or Server. For GeoBase installed onto a mobile device, a license file with a .gbl extension is used and must be obtained separately from support or your sales contact. Running a mobile application inside a Visual Studio emulator does not require a license file.
Published, Oct 20th 2010, 14:53
