Navigation:  Web Activation Server > Tutorial Web Activation Server > Part II - Installation and Configuration > Installation of the Web Activation Server >

Customize Configuration Files

Previous pageReturn to chapter overviewNext page

The following configuration files have to be configured

 

The web.config file
The licprotectorws.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

 

Configuring Web.config

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:

 

1.Define where the log-configuration can be found: Simply adapt the value of the key „logconfig“ to your Web Application path (e.g. c:\\inetpub\\wwwroot\\lpweb\\log). Note to use two backslashes in the path-value
 
2.Define where the Licence Protector LPWAS configuration can be found: Simply adapt the value of the key „licprotectorwsconfig“ to your Web Application path (e.g. c:\\inetpub\\wwwroot\\lpweb). Note to use two backslashes in the path-value
 
3.The database connection string: Set the value of the key „db“ according to your database position.

 

Set „user id“ to a user who has read and write access to your LPWAS database. The system administrator „sa“ is not a bad choice.
Set „password“ to the password of the configured user.
Set „data source“ to your SQL Server machine.
Set „initial catalog“ to your LPWAS database-name. Normally that name is LPWeb.

 

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>

 

 

Configuring LicProtectorws.config

 

 

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.

 


Page url: http://www.helpserver.biz/onlinehelp/lp/easygo/2.5/help2000/index.html?in_customize_configuration_files.htm