View previous topic :: View next topic |
Author |
Message |
Bala Guest
|
Posted: Thu Jul 21, 2005 1:01 am Post subject: ASPNET SUPPORT |
|
|
Hi
Is this support ASPNET C#
Bala |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu Jul 21, 2005 9:39 am Post subject: |
|
|
Clearly you can't use the Install Form (as this is Windows Forms based) but you should be able to use core licensing classes and methods as these are 100% standard .NET. I believe some of our customers are using ILS for licensing ASP apps - hopefully they might give you some feedback. _________________ Infralution Support |
|
Back to top |
|
|
Bala Guest
|
Posted: Thu Jul 21, 2005 4:11 pm Post subject: ASPNET SUPPORT |
|
|
Is there a sample aspnet C#
Bala |
|
Back to top |
|
|
Bala Guest
|
Posted: Fri Jul 22, 2005 12:30 am Post subject: ASPNET SUPPORT |
|
|
How are you getting the license if i want to use in the webapp.. aspnet c#
Can you provide with a sample program how to do this?
license = licenseForm.ShowDialog("MyApp", "www.mycompany.com", typeof(MainForm));
Bala |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Jul 22, 2005 12:45 am Post subject: |
|
|
The license form is used to allow the user to install the license in a WinForms application.
You can check if there is a license file with a valid key by calling:
Code: |
License license = null;
EncryptedLicenseProvider.SetParameters(_licenseParameters);
if (!LicenseManager.IsValid(typeof(MyType), this, out license))
{
// take some action - we aren't licensed
}
|
To install the license you would create a license file for the type being licensed (eg MyNamespace.MyType.lic) that contains the license key and place this file your bin directory. You probably don't want to do this via WebForms (even if you could) because the end user (ie the person using the ASP application) is probably not the person running the server who you are selling your application license to. _________________ Infralution Support |
|
Back to top |
|
|
conkerjoe
Joined: 22 Jul 2005 Posts: 3
|
Posted: Fri Jul 22, 2005 8:17 am Post subject: ASP and Web Services |
|
|
Practisoft needed to allow automatic creationg of Keys and a web interface so we can manage the license keys remotly.
So we have developed a Web Service and a Very basic implementation of the licence tracker in ASP.Net form written in C#.
If you are interested in this please contact infralution or myself and ask for the Infralution Web Key Manager
http://www.practisoft.co.uk |
|
Back to top |
|
|
conkerjoe
Joined: 22 Jul 2005 Posts: 3
|
Posted: Fri Jul 22, 2005 8:32 am Post subject: Sorry |
|
|
Just realised this is not what you want at all.. oops, although if you are still interested in this please drop us an email.
As far as your problem goes, Are you wanting to stop people completly from using your system if they are not licenced or do you just want to bring up a dialog to tell them they are not licenced.??
If you are not wanting to stop people then i recomend doing something like putting an image on tile on the background or something to make sure its good enough to test, but there is no way you would release it without registering. if you want to stop people using the system then i recommend a redirect to a Not Registered page or something along these lines.
http://www.practisoft.co.uk |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu Jul 28, 2005 3:45 am Post subject: |
|
|
We've now done some validation under ASP.NET and found that you can indeed successfully reference the DLL and call the LicenseManager.IsValid or LicenseManager.IsLicensed methods as suggested previously.
There is however an issue with the location of the license file. The current version of ILS uses a call to Assembly.Location to determine the directory that contains the DLL being licensed. Unfortunately under ASP.NET this returns a reference to a temporary path which changes each time the DLL is run.
You could overcome this in the current version by deriving a new class from EncryptedLicenseProvider and overriding the GetLicenseFilePath method to return path where you will store the license file. We will have a release out very soon that fixes this issue. _________________ Infralution Support |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Jul 29, 2005 12:31 am Post subject: |
|
|
Version 2.0.4 has now been released. This fixes the issue with the license file location when licensing ASP.NET applications. _________________ Infralution Support |
|
Back to top |
|
|
Bala Guest
|
Posted: Mon Sep 19, 2005 4:04 pm Post subject: Re: ASP and Web Services |
|
|
conkerjoe wrote: | Practisoft needed to allow automatic creationg of Keys and a web interface so we can manage the license keys remotly.
So we have developed a Web Service and a Very basic implementation of the licence tracker in ASP.Net form written in C#.
If you are interested in this please contact infralution or myself and ask for the Infralution Web Key Manager
http://www.practisoft.co.uk |
Is it possible for me to have the code for automatic web code generation
Bala |
|
Back to top |
|
|
|