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 

ASPNET SUPPORT

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





PostPosted: Thu Jul 21, 2005 1:01 am    Post subject: ASPNET SUPPORT Reply with quote

Hi
Is this support ASPNET C#

Bala
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jul 21, 2005 9:39 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Bala
Guest





PostPosted: Thu Jul 21, 2005 4:11 pm    Post subject: ASPNET SUPPORT Reply with quote

Is there a sample aspnet C#
Bala
Back to top
Bala
Guest





PostPosted: Fri Jul 22, 2005 12:30 am    Post subject: ASPNET SUPPORT Reply with quote

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

PostPosted: Fri Jul 22, 2005 12:45 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
conkerjoe



Joined: 22 Jul 2005
Posts: 3

PostPosted: Fri Jul 22, 2005 8:17 am    Post subject: ASP and Web Services Reply with quote

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
View user's profile Send private message Send e-mail
conkerjoe



Joined: 22 Jul 2005
Posts: 3

PostPosted: Fri Jul 22, 2005 8:32 am    Post subject: Sorry Reply with quote

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
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jul 28, 2005 3:45 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Jul 29, 2005 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Bala
Guest





PostPosted: Mon Sep 19, 2005 4:04 pm    Post subject: Re: ASP and Web Services Reply with quote

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
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