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 

Can It use For Web Application Licensin??

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Feature Requests
View previous topic :: View next topic  
Author Message
yogesh
Guest





PostPosted: Thu Aug 04, 2005 12:03 pm    Post subject: Can It use For Web Application Licensin?? Reply with quote

hi,,
pls ,,, tell me how i can use, it
for licensing Web Application ,>?
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Aug 04, 2005 1:39 pm    Post subject: Reply with quote

Yes you can use the licensing system for ASP.NET applications. Simply add a reference to the Infralution.Licensing.dll to your project. Add the LicenseProvider attribute to the web form you want to license and the following code in your to your PageLoad:

Code:

[LicenseProvider(typeof(Infralution.Licensing.EncryptedLicenseProvider))]
public class WebForm1 : System.Web.UI.Page
{
   
    private void Page_Load(object sender, System.EventArgs e)
   {
            const string _licenseParameters = @"..";  // String from LicenseKey Generator
            EncryptedLicenseProvider.SetParameters(_licenseParameters);
            if (!LicenseManager.IsLicensed(typeof(WebForm1)))
            {
                throw new LicenseException(typeof(WebForm1));
            }
    }
}


To install a license create a text file called "MyApp.WebForm1.lic" (where MyApp.WebForm1 is the full type name of the type you are licensing) and paste the license key in it. Place the text file in the bin directory of your web project.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
mpreuett
Guest





PostPosted: Thu Sep 08, 2005 11:06 pm    Post subject: restricing web application to specific domain name Reply with quote

Is there a way that a web application can be run on a single domain and disable if it is installed elsewhere?

Thanks in advance,
Mike Preuett
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Sep 08, 2005 11:13 pm    Post subject: Reply with quote

Yes you could include the domain name in the License Key (in the ProductInfo) when you issue it. Then when you check the license you could extract the domain name from the key and check it against the actual domain name the server is running on.

If you want to keep the key shorter you can use a checksum of the domain name instead of the actual domain name. See the Custom Licensed App sample for an example of this.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
mpreuett
Guest





PostPosted: Sat Sep 10, 2005 2:52 am    Post subject: Reply with quote

Thanks for the response. So far so good. Another question. Is it possible to disable a license remotely? Say I have a subscription ASP.NET application and I want to disable the app because of non payment? Possible?

Thanks in advance.
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sat Sep 10, 2005 3:26 am    Post subject: Reply with quote

For this style of licensing you would have to build your own ASP license server application that the customers application checked with each time to validate that the subscription was still valid.

I don't know of any off the shelf solutions that do this - but there may be some.
_________________
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 Feature Requests 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