View previous topic :: View next topic |
Author |
Message |
Jmasters
Joined: 23 Apr 2007 Posts: 1
|
Posted: Mon Apr 23, 2007 4:06 am Post subject: The only allowable password in evaluation mode is 'TEST' |
|
|
I am trying to build a custom key generator into a shopping cart for authorize.net (sorry paypal doesn't work for me) and I have copied my
Infralution.Licensing.EncryptedLicenseProvider.lic
into
\Program Files\Infralution\Infralution Licensing System\Bin
\Program Files\Infralution\Infralution Licensing System\LicenseTracker
\Inetpub\wwwroot\myweb
on my web server and still I am getting the error message that in evaluation mode. Where exactly do I need to place the .lic so that it will get picked up? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Apr 23, 2007 9:58 am Post subject: |
|
|
If you are referencing the Infralution.Licensing.dll (rather than including the source code in your ASP.NET project) then the .lic file needs to be put in the same folder as the DLL (typically this would be under the bin directory of your web server \Inetpub\wwwroot\myweb\bin).
If you installed the Licensing.msi installer on your web server however, this would have installed the Infralution.Licensing.dll in the GAC. Your web application will then use the GAC DLL rather than the one directly referenced. This means that you would actually have to copy the licensing file to the (hidden) GAC directory containing Infralution.Licensing.dll. While this is possible (using a command line prompt) it is not easy.
If you have purchased ILS it is generally better (and easier) to simply include the source code for the EncryptedLicense and EncryptedLicenseProvider classes directly in your ASP.NET solution. The license checks are done within a conditional (#ifdef) code block and eliminates the need for the license file altogether. We also prefer this because it eliminates the possibility of you inadvertantly publishing your license file on your web server.
These classes also use a conditional code block to define the visibility of the classes. For ASP.NET projects the classes must be defined as public - so you need to add the following #define statement to the top of each file:
Code: | #define PUBLIC_LICENSE_CLASS |
_________________ Infralution Support |
|
Back to top |
|
|
|