Customize Configuration Files
The following configuration files have to be configured
• | The web.config file |
• | The project.config file |
• | The log.config file |
• | One or more Project files |
• | One or more Automatic Licence Generator configuration files |
The configuration for EasyGo is explained in the main documentation - Chapter Configuration of the Web Activation Server
If you use the MSI installer, the configuration is done automatically and only necessary, if you want to manually change default settings.
This file resides in the root directory of the web application (e.g. c:\inetpub\wwwroot\lpweb\web.config)
The file has a lot of configuration options which should not be changed. This tutorial describes only options you could change.
You can
A path can be specified to export data (exportpath), for reports (reportpath) and for the language file. These folders must exist and read and write permission is necessary.
Here is the configuration for our example. The Web Application is installed in c:\inetpub\wwwroot\lpweb, the database machine is „mysqlserver“, the database is named „LPWeb“ and the user „sa“ has the password „secret“:
<?xml version="1.0" encoding="utf-8" ?> <configuration>
<appSettings> <add key="logconfig" value="C:\Inetpub\wwwroot\lpweb\log.config" /> <add key="licprotectorwsconfig" value="C:\Inetpub\wwwroot\lpweb\project.config" /> <add key="db" value="user id=lpweb;data source=PCname\mysqlserver;persist security info=False;initial catalog=lpweb;password=your password" /> <add key="exportpath" value="C:\Inetpub\wwwroot\lpweb\export\"></add> <add key="reportpath" value="C:\Inetpub\wwwroot\lpweb\reports\"></add> <add key="languagefile" value="C:\Inetpub\wwwroot\lpweb\languages\languages.xml"></add> <add key="LPWebFrontend.net.registerserver.licenseProtector-ASP.Net-WebService" value="http://localhost/lpweb/lpws.asmx"/> <add key="loglevel" value="4"></add> </appSettings>
<system.web> … |
This files replaces the formerly used project.config file in the main web folder, which is still supported for backward compatibility.
For each project you need a project config file in the folder \pconfig . It needs the extension .config.
Example .\pconfig\easy-go.config
If you are using EasyGo, a sample file can be found in the folder ..\EasyGo\Web Activation Server. Hosting customers should use the files from the folder ..\EasyGo\Web Activation Server\Files for Mirage Hosting
The file could look as follows. Find the detail description in the list of available parameters.
<Configuration>
<Project> <ProjectID>demo-easygo</ProjectID> <ProjectDescription>Easy Go application Version 1.3 </ProjectDescription> <IsSerial>QHD001</IsSerial> <CheckActivationKeys>yes</CheckActivationKeys> <StoreKey>yes</StoreKey> <NoOfAllowedKeyOccur>1</NoOfAllowedKeyOccur>
<CheckEntries>yes</CheckEntries> <EntryRequired>no</EntryRequired> <NoOfAllowedEntryOccur>1</NoOfAllowedEntryOccur>
<InstCodeType1>6</InstCodeType1> <InstCodeType2>1</InstCodeType2> <InstCodeType3>3</InstCodeType3>
<AllowReactivation>Yes</AllowReactivation> Use either < MinIdenticalInstcodes>3</MinIdenticalInstcodes> or an individual definition <CheckInstCodeType1>1</CheckInstCodeType1> <CheckInstCodeType2>2</CheckInstCodeType2> <CheckInstCodeType3>3</CheckInstCodeType3> <CustomerInfoMapping>last</CustomerInfoMapping> <MultipleLVS>true</MultipleLVS> <LvsDefaultName>Default</LvsDefaultName>
<GeneratorPath>C:\Inetpub\wwwroot\lptest\lpweb\bin\alg</GeneratorPath> <GeneratorApp>AutoLicGenerator.exe</GeneratorApp> <GeneratorConfig>config-autogenerator-EasyGo.xml</GeneratorConfig> <TicketValidMinutes>1440</TicketValidMinutes>
</Project>
</Configuration>
|
You have to restart the Activation Server after making configuration changes.