|
Navigation: Web Activation Server > Tutorial Web Activation Server > Part II - Installation and Configuration > Installation of the Web Activation Server > Customize Configuration Files |
![]() ![]()
|
The following configuration files have to be configured
| • | The web.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
This file resides in the root directory of the web application (e.g. c:\inetpub\wwwroot\lpweb\web.config)
Here the following important settings are done:
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\licprotectorws.config" /> <add key="db" value="user id=testuser;data source=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.LicenceProtector-ASP.Net-WebService" value="http://localhost/lpweb/lpws.asmx"/> <add key="loglevel" value="4"></add> </appSettings>
<system.web> … |
This file is placed in the main web folder and includes definition for all projects.
If you are using EasyGo, the file can be found in the folder ..\EasyGo\Web Activation Server. You have to create a definition for each project. Just copy an existing project and add a new node in the XML file.
The file could look as follows. Find the detail description in the list of available parameters.
<Configuration>
<Project> <ProjectID>demo-easygo</ProjectID>
<CheckActivationKeys>yes</CheckActivationKeys> <NoOfAllowedKeyOccur>1</NoOfAllowedKeyOccur>
<CheckEntries>yes</CheckEntries> <EntryRequired>no</EntryRequired> <NoOfAllowedEntryOccur>1</NoOfAllowedEntryOccur>
<InstCodeType1>6</InstCodeType1> <InstCodeType2>1</InstCodeType2> <InstCodeType3>3</InstCodeType3>
<AllowReactivation>Yes</AllowReactivation> < MinIdenticalInstcodes>3< MinIdenticalInstcodes> <CheckInstCodeType1>1</CheckInstCodeType1> <CheckInstCodeType2>2</CheckInstCodeType2> <CheckInstCodeType3>3</CheckInstCodeType3>
<GeneratorPath>C:\Inetpub\wwwroot\lptest\lpweb\bin\alg</GeneratorPath> <GeneratorApp>AutoLicGenerator.exe</GeneratorApp> <GeneratorConfig>config-autogenerator.xml</GeneratorConfig>
</Project>
<Project> <ProjectID>project2</ProjectID>
.... definitions for project 2
</Project>
</Configuration>
|
You have to restart the Web Service after making configuration changes.