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
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jan 08, 2014 12:52 pm    Post subject: Reply with quote

As described in the Help Section "Redistributables and Source Code" you need to set the following properties for the LicenseResources.resx file (by selecting it in the Solution Explorer and then setting the properties in the properties window):

For C#:

Custom Tool: ResXFileCodeGenerator
Custom Tool Namespace: Infralution.Licensing.ASP

For VB.NET

Custom Tool: VbMyResourcesResXFileCodeGenerator
_________________
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 2:13 pm    Post subject: Reply with quote

thanks.

Now i am getting the following error:-
An error has occurred. Please check the values entered. System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Infralution.Licensing.ASP.LicenseResources.resources" was correctly embedded or linked into assembly
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jan 08, 2014 10:42 pm    Post subject: Reply with quote

Ensure that Build Action (in the properties window) for the LicenseResources.resx is set to "Embedded Resource".
_________________
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 Jan 09, 2014 5:40 am    Post subject: Reply with quote

Yes, the following properties set in resources.resx file
Build Action:Embedded Resource
Do not copy:Do not copy
Custom Tool:ResXFileCodeGenerator
Custom NameSpace:Infralution.Licensing.ASP

will i want to check anything else ?
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jan 09, 2014 7:05 am    Post subject: Reply with quote

Are you coding in VB or C#?
_________________
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 Jan 09, 2014 7:09 am    Post subject: Reply with quote

I am using C# Code.
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jan 09, 2014 8:02 am    Post subject: Reply with quote

Right click on the LicenseResources.resx file and click "Run Custom Tool". This will recreate the LicenseResources.Designer.cs file with the correct code. I think you have copied the LicenseResources.Designer.cs file from the library source code (instead of auto generating it from LicenseResources.resx).
_________________
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 Jan 09, 2014 8:52 am    Post subject: Reply with quote

I have tried to right click on the Resources.resx & then Run Custom tool
as well as i have removed existing designer.cs file & then Run custom tool also. Even i am getting the same error:-

An error has occurred. Please check the values entered. System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Infralution.Licensing.ASP.LicenseResources.resources" was correctly embedded or linked into assembly "Authentication" at compile time, or that all the satellite assemblies required are loadable and fully signed. at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.Resources.ResourceManager.GetString(String name, CultureInfo culture) at Infralution.Licensing.ASP.LicenseResources.get_AuthenticationsExceededMsg() at Infralution.Licensing.ASP.AuthenticationsExceededException..ctor() at Infralution.Licensing.ASP.AuthenticationService.Authenticate(AuthenticatedLicenseParameters parameters, String computer, String authenticationKey, String applicationData) at Infralution.Licensing.ASP.AuthenticatedLicenseProvider.AuthenticateKeyOnComputerWithData(String authenticationKey, String computerID, String applicationData) at Infralution.Licensing.ASP.AuthenticatedLicenseProvider.AuthenticateKeyWithData(String authenticationKey, String applicationData) at Infralution.Licensing.ASP.AuthenticatedLicenseProvider.AuthenticateKey(String authenticationKey) at Authentication.AuthenticateWebPart.AuthenticateWebPartUserControl.IsValidAuthenticationKey1(String strProductName, String strWebAppName) at Authentication.AuthenticateWebPart.AuthenticateWebPartUserControl.btnSubmit_Click(Object sender, EventArgs e)
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jan 09, 2014 9:29 am    Post subject: Reply with quote

If you have regenerated the designer file I'm not sure why you would get that error. Check the LicenseResources.Designer.cs file. It should contain a method like:

Code:
       internal static global::System.Resources.ResourceManager ResourceManager {
            get {
                if (object.ReferenceEquals(resourceMan, null)) {
                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TestASP_CSSource.LicenseResources", typeof(LicenseResources).Assembly);
                    resourceMan = temp;
                }
                return resourceMan;
            }
        }


Where "TestASP_CSSource" would be the name of your project (and the name of the dll generated in the bin folder. I think for some reason yours has "Infralution.Licensing.ASP" instead.
_________________
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 Jan 09, 2014 10:07 am    Post subject: Reply with quote

Yes, i have tried with my project name, my name space name, even it is getting same error.

one more thing, i have added your all class file via existing item. so there itself your namespace name Infralution.Licensing.ASP.
Back to top
View user's profile Send private message Send e-mail
aasai04



Joined: 29 Oct 2013
Posts: 27

PostPosted: Thu Jan 09, 2014 10:14 am    Post subject: Reply with quote

this is my project name:C_Authentication
this is my namespace name:
C_Authentication.C_AuthenticateWebPart
now getting same error with make sure "C_Authentication.C_AuthenticateWebPart.LicenseResources.resources".
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jan 09, 2014 12:23 pm    Post subject: Reply with quote

No I think it needs to be just:

"C_Authentication.LicenseResources.resources"

But if you send me a zipped copy of your compiled dll (to support@infralution.com) I can verify what the embedded resource name is.
_________________
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 Jan 09, 2014 12:38 pm    Post subject: Reply with quote

I can't share it with you. Sorry.
if i use same license key repeatedly for testing, is it came up above error ?
Back to top
View user's profile Send private message Send e-mail
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Jan 09, 2014 12:57 pm    Post subject: Reply with quote

Sorry I think it should probably be:

"C_Authentication.LicenseResources"

ie without the ".resources"

If you don't trust us to share your compiled binary then you can use ILSpy (ilspy.net) to look at the compiled binary yourself and look at the name of the compiled resource. The string passed to the ResourceManager constructor should just be the embedded resource name without the ".resources" on the end.
_________________
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 10, 2014 6:36 am    Post subject: Reply with quote

I am not changed the following location:-
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Infralution.Licensing.ASP.LicenseResources", typeof(LicenseResources).Assembly);

it is working well all web app key except one key.
But that one key try to authenticated on ils server, it shows 11 times failed.

I am not sure, why it is returning error. but i am not getting error for other keys, when i am trying to validate again.
I hope, it may help you to understand those problem.

I have asked my manager, once confirmed i will send dll to you.
already you sent some code for many time hit ils server for many web apps.
please send again & where i want to do that code ?
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 3 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