Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

install license in ASP.NET App_Data directory

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
dib.ashish



Joined: 23 Jun 2014
Posts: 6

PostPosted: Wed Jul 02, 2014 12:39 pm    Post subject: install license in ASP.NET App_Data directory Reply with quote

Hello, I am being using below link:

http://www.infralution.com/phpBB2/viewtopic.php?t=1706

For method 1,
The link has mentioned to install license in App_Data folder, but can you give me step by step procedure in order to complete it?
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jul 09, 2014 12:13 am    Post subject: Reply with quote

To install the license you need to add a web page to your ASP.NET project with a text box (to enter your ILS license key) and a button to submit. Then add a button click handler as follows:

Code:
protected void _installLicenseButton_Click(object sender, EventArgs e)
{
       string key = _licenseTextBox.Text.Trim();

       if (!string.IsNullOrEmpty(key))
       {
            try
            {
                if (!LicenseUtilities.InstallILSLicense(key))
                {
                    _licenseLabel.Text = "Invalid License Key";
                }
             }
            catch (Exception ex)
            {
                _licenseLabel.Text = "Error Installing ILS Key: " + ex.Message;
            }
       }
 }


or in VB.NET

Code:
Protected Sub _installLicenseButton_Click(sender As Object, e As EventArgs)
   Dim key As String = _licenseTextBox.Text.Trim()

   If Not String.IsNullOrEmpty(key) Then
      Try
         If Not LicenseUtilities.InstallILSLicense(key) Then
            _licenseLabel.Text = "Invalid License Key"
         End If
      Catch ex As Exception
         _licenseLabel.Text = "Error Installing ILS Key: " + ex.Message
      End Try
   End If
End Sub


Then publish and run your project on the web site and enter the license key.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group