Git Product home page Git Product logo

qlicense's People

Contributors

mtorrisi avatar soldierq avatar spargher avatar z-boson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qlicense's Issues

RSA fixes (SHA256) for .NET 4.7.2 (recommended for .NET 4.6 upwards)

The casts to RSACryptoProvider in the LicenseHandler need to be adjusted for .NET 4.6 and later. In .NET 4.7.2, these break completely due to the deprecation of SHA1 and the cast defaults to this busted algorithm so the code aborts

The fix appears to be to change the private/public key lines of the form:

RSACryptoServiceProvider rsaKey = (RSACryptoServiceProvider)cert.PublicKey.Key;

to :

RSA rsaKey = cert.getRSAPublicKey();

Invalid algorithm specified

Hi,

How to fix this error on LicenseHandler.cs Line 141 signedXml.ComputeSignature();

System.Security.Cryptography.CryptographicException
HResult=0x80090008
Message=Invalid algorithm specified.

Thanks

Unable to compile

Hi

I created a PFK and CER file and copied both into the demo project.

I adjusted the password.

I also set the target framework to 4.7.2 but it will not compile:

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0246	The type or namespace name 'QLicense' could not be found (are you missing a using directive or an assembly reference?)	DemoActivationTool	D:\My Programs\2022\QLicense-master\Demo\DemoActivationTool\frmMain.cs	6	Active
Error	CS0246	The type or namespace name 'DemoLicense' could not be found (are you missing a using directive or an assembly reference?)	DemoActivationTool	D:\My Programs\2022\QLicense-master\Demo\DemoActivationTool\frmMain.cs	7	Active
Error	CS0246	The type or namespace name 'QLicense' could not be found (are you missing a using directive or an assembly reference?)	DemoActivationTool	D:\My Programs\2022\QLicense-master\Demo\DemoActivationTool\frmMain.cs	50	Active
Error	CS0246	The type or namespace name 'QLicense' could not be found (are you missing a using directive or an assembly reference?)	DemoActivationTool	D:\My Programs\2022\QLicense-master\Demo\DemoActivationTool\frmMain.Designer.cs	91	Active
Error	CS0246	The type or namespace name 'QLicense' could not be found (are you missing a using directive or an assembly reference?)	DemoActivationTool	D:\My Programs\2022\QLicense-master\Demo\DemoActivationTool\frmMain.Designer.cs	93	Active
Error	CS0246	The type or namespace name 'QLicense' could not be found (are you missing a using directive or an assembly reference?)	DemoWinFormApp	D:\My Programs\2022\QLicense-master\Demo\DemoWinFormApp\frmActivation.Designer.cs	83	Active
Error	CS0246	The type or namespace name 'QLicense' could not be found (are you missing a using directive or an assembly reference?)	DemoWinFormApp	D:\My Programs\2022\QLicense-master\Demo\DemoWinFormApp\frmMain.cs	5	Active
Error	CS0246	The type or namespace name 'DemoLicense' could not be found (are you missing a using directive or an assembly reference?)	DemoWinFormApp	D:\My Programs\2022\QLicense-master\Demo\DemoWinFormApp\frmMain.cs	6	Active
Error	CS0246	The type or namespace name 'QLicense' could not be found (are you missing a using directive or an assembly reference?)	DemoWinFormApp	D:\My Programs\2022\QLicense-master\Demo\DemoWinFormApp\frmMain.Designer.cs	58	Active

Yet, I can see it there.

Please.

Thanks.

Volume license

Great job.
Now I am able to introduce license into my sw and also features specific license for different customers type.
The only doubt is what is the Volume license.
How I can control what computers can run a sw?
There is something that I have not understood on this license type.
Anyway thank you

Bogus "INVALID" responses - How to handle

If you are trying to add this to a DLL which is run by a CAD application, you need to change the way you find the path to the license file:

System.Reflection.Module mod = GetType().Module;
string pathlic = Path.Combine(Path.GetDirectoryName(mod.FullyQualifiedName), "license.lic");

not bad

additional embeded res or not a lot of metter;
same like use in mem in demo;
but nice starting point

License?

Saw this on code project, but this repo doesn't have a license file. Is this also to be CPOL?

Object reference not set to an instance of an object.

the sample demo works, but when i try to apply it on my proj
it got an error, Object reference not set to an instance of an object.

//Read public key from assembly

        Assembly _assembly = Assembly.GetExecutingAssembly();
        using (MemoryStream _mem = new MemoryStream())
        {
           
           // this line got an error
          _assembly.GetManifestResourceStream("Form1.LicenseVerify.cer").CopyTo(_mem);

            _certPubicKeyData = _mem.ToArray();
        }

can you help on this? I've recently download the update version from your article on codeproject, before your update, i got this form working, but it got some issues after

When ran on win7, it was always failed.

tested on Win10 works fine.
But when ran on win7, it was always failed.
I tracked the problem was :

// Check the signature and return the result.
return signedXml.CheckSignature(Key);

Always false on Win7

usage in .NET Standard

Hello, the project looks pretty interesting to me. Are there any experiences or maybe known issues using QLicense in an .NET Standard (2.0) library?
Best regards, adrian

The specified network password is not correct

Hi,
I built the project with no errors also had LicenseSign.pfx in DemoActivationTool folder. When trying to generate the license having the following error "System.Security.Cryptography.CryptographicException: 'The specified network password is not correct".
Do I have to do any modifications to the certificate?

Thanks in advance!
NetworkSpecifiedPasswordError

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.