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 

How to make my web application with licence key ?
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
aasai04



Joined: 29 Oct 2013
Posts: 27

PostPosted: Mon Nov 18, 2013 5:36 am    Post subject: Reply with quote

thanks,

I have activated the license key.

I have used the following code on the main page load.

AuthenticatedLicense license = _licenseProvider.GetLicense();
bool licensed = _licenseProvider.IsValid(license);
if (licensed){}


1. is that above code validating with in local system or
every touch on ILS ?
2. should be Generate validation parameter hard code on code behind ?
is there any way maintain separately, because every time we want to touch on the code for every product.
3. if i give some input on authentication data field & used on my code, is that validating with in local or ILS ?

Please confirm above 3 doubts.

Thanks
Aasai
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Nov 18, 2013 8:41 am    Post subject: Reply with quote

1. The GetLicense and IsValid methods operate purely locally (ie they don't contact the Authentication Server).

2. I'm not sure what you mean by this. If you want to centralize the code you can put the license validation code and license parameters in a separate module or class and call the method from your page code behinds.

3. The Authentication Data is only downloaded from the server when the license is installed. This means if you want to update the information then you need to reinstall the license (or have your code call the AuthenticatedLicenseProvider.Reauthenticate method).
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
aasai04



Joined: 29 Oct 2013
Posts: 27

PostPosted: Wed Nov 27, 2013 1:35 pm    Post subject: Reply with quote

Thanks for your guidelines.

Now it is coming around good.

I have one more doubt, when i am going to many time test with single product with single key license.

1st time authenticated, if it is right.
2nd or 3rd time, if i try with same key & product,
it(license instance) is returning null, How to check, if it is already authenticated ?

How to check license parameter authenticated & validated, what method i want to use for license authentication check before or after installation ?

For your reference;
I have used the following code for authenticate license:-
AuthenticatedLicenseProvider _licenseProvider = new AuthenticatedLicenseProvider(LICENSE_PARAMETERS, LICENSE_FILE);

string key = txtLicenseKey.Text.Trim();
AuthenticatedLicense license = _licenseProvider.AuthenticateKey(key);

if (license != null){_licenseProvider.InstallLicense(license);}

Please advice.

Thanks
Aasai
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Nov 27, 2013 11:34 pm    Post subject: Reply with quote

If you are trying to authenticate rapidly multiple times from the same IP Address (ie computer) then you may be encountering the Authentication Server protection against Denial of Service (DoS) attacks. This protects against repeated calls to the service from a single IP within a given window of time (by default a maximum of 10 calls within a 60 second time frame). You can change this behaviour using the settings in the Web.Config file for the Authentication Server. To turn it off altogether you set the CheckCallerIP property to false.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
aasai04



Joined: 29 Oct 2013
Posts: 27

PostPosted: Thu Nov 28, 2013 2:08 pm    Post subject: Reply with quote

1. Suppose, If i am going to deploy many products on client server, is there any problem with authenticate ?

2. I am getting error on client server, when i am deployed.
"Object reference not set to an instance of an object."
But it is working on my development server.
Initially it said, could not load assembly, then i have added the assembly on the web config & added on gac also.

Please confirm 1 & 2.

Thanks
Aasai
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Nov 28, 2013 9:41 pm    Post subject: Reply with quote

1. In real deployment situations, you normally only authenticate the license once. Once you have an installed license your code should not be calling Authenticate. If for some reason you did think that you might have one client calling the Authentication Server more than 10 times in 60 seconds then you can change the DoS parameters in the Web.Config

2. Without a stack trace it is impossible to know whether the error is occurring in your code or ILS code. It is probably unlikely to be in our code because it is very widely tested, deployed and used. If you can provide a stack trace we can give more help.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
aasai04



Joined: 29 Oct 2013
Posts: 27

PostPosted: Fri Nov 29, 2013 5:16 am    Post subject: Reply with quote

1. There is no dos parameter on the ILS TOOL WEB CONFIG.
I have few products on the ils tool, i am going to install all my products in the client machine, each product has separate license key & separated parameters, if it is that problem, How can i handle it ?

2. what i want to do for ILS in client machine, anything specifically will i want to create there ?
i think, i have problem in adding reference.
Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
Certification.VisualWebPart1.VisualWebPart1UserControl.Page_Load(Object sender, EventArgs e) +187
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
System.Web.UI.Control.OnLoad(EventArgs e) +131
System.Web.UI.Control.LoadRecursive() +65
System.Web.UI.Control.AddedControl(Control control, Int32 index) +349
Certification.VisualWebPart1.VisualWebPart1.CreateChildControls() +154
System.Web.UI.Control.EnsureChildControls() +145
System.Web.UI.Control.PreRenderRecursiveInternal() +60
System.Web.UI.Control.PreRenderRecursiveInternal() +223
System.Web.UI.Control.PreRenderRecursiveInternal() +223
System.Web.UI.Control.PreRenderRecursiveInternal() +223
System.Web.UI.Control.PreRenderRecursiveInternal() +223
System.Web.UI.Control.PreRenderRecursiveInternal() +223
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3393
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sat Nov 30, 2013 1:25 am    Post subject: Reply with quote

1. The Denial of Service (DoS) settings I referred to in the Web.Config are the settings I described previously. In particular you can just turn the DoS protection off by setting CheckCallerIP to false.

2. That stack trace does not contain any Infralution assemblies/methods - so the error is occurring in your code.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
aasai04



Joined: 29 Oct 2013
Posts: 27

PostPosted: Tue Dec 24, 2013 4:58 am    Post subject: Reply with quote

I have one more doubt about ils,

1. i have used your ils code on user control. it mean i have used ascx page, is that problem ?

Please confirm.
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Dec 26, 2013 8:30 am    Post subject: Reply with quote

Do you mean you want to license an ASP.NET Web Control?

You can use Authenticated Licensing as shown in the Authenticated Web Application sample project - however this will mean that each web site that uses the control to install a license key. If you are creating a user control to be purchased by other developers to create sites for their customers then this may not be what you want.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
aasai04



Joined: 29 Oct 2013
Posts: 27

PostPosted: Thu Dec 26, 2013 8:48 am    Post subject: Reply with quote

Yes, i want to use an asp.net web control.
Not in web application.
For example:
I have five user control. if client want to buy all the controls, each user control want to validate license key with in the server.

is that work ? can i use ils on user control ?

Please confirm.
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Dec 27, 2013 9:39 pm    Post subject: Reply with quote

Once a license has been authenticated the license file is stored on the local system and the authentication server does not need to be contacted again. So generally having multiple licenses on a single client won't cause any issues with the Denial of Service protection (if this is what you are concerned about). If you do think this might be an issue then you can just change the settings in the Web.Config file as I wrote previously.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
aasai04



Joined: 29 Oct 2013
Posts: 27

PostPosted: Fri Jan 03, 2014 2:23 pm    Post subject: Reply with quote

if i got license for developer,
can i use your class(.cs) file directly on my code ?

because your dll not referred on out of development server, when i am deployed.

can you describe specifically, will i want to do anything on my client side ?

Still i am looking with your tool.

Please confirm.
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Jan 03, 2014 9:47 pm    Post subject: Reply with quote

Yes we provide the licensing classes that you can use in your project instead of referencing the dll. You can alternatively distribute the dll (and put it in the bin directory)
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
aasai04



Joined: 29 Oct 2013
Posts: 27

PostPosted: Wed Jan 08, 2014 11:49 am    Post subject: Reply with quote

thanks,
I got your original source file. so i have take off your dll then used class.
Now i have used your all class file(.cs & .resx) in my project.

Initially i am getting the following error:-
You must define one of the conditional compilation symbols

there after i have define in my project with ILS_ASP.
It is solved now. After that i am getting the following error

The name 'LicenseResources' does not exist in the current context.

Please tell me, what i want to do.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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