License isn't working

adam.askew's Avatar

adam.askew

06 Mar, 2018 04:00 PM

Hi guys,

I have a new license and it isn't working.

My old one stopped working for some reason and so i think there is an old license somewhere on the system that is overwriting my new one.

I have try uninstalling and re-installing but no joy.

Could you help?

error PS0243: License error. The project uses non-licensed features. It is not allowed to enhance or analyze more than 50 classes in each solution by features not covered by the installed licenses. Please visit https://www.postsharp.net/purchase to acquire a license of PostSharp.

Adam

  1. Support Staff 1 Posted by PostSharp Techn... on 06 Mar, 2018 10:11 PM

    PostSharp Technologies's Avatar

    Hello,

    the license can be overridden by a project file (.csproj) or a config file (.psproj, .pssln, postsharp.config). I think if you'll search the solution directory for your license key, you will be able to find the origin or this problem (or, in case of postsharp.config it could be several directories up). Could you please verify whether it is the case?

    Thanks!

    Best regards,
    Daniel

  2. 2 Posted by adam.askew on 07 Mar, 2018 02:00 PM

    adam.askew's Avatar

    Thanks for your response.

    I cannot find any reference to a license in my solution.

    All I can see in a csproj file is:
        <PackageReference Include="PostSharp.Redist" Version="5.0.38" />
        <PackageReference Include="PostSharp" Version="5.0.38">

    Do you have any other ideas?

    Any scripts I can run to see what license it is using?

    Adam

  3. Support Staff 3 Posted by PostSharp Techn... on 07 Mar, 2018 09:16 PM

    PostSharp Technologies's Avatar

    Hello,

    please try deleting following registry keys and values:

    HKEY_CURRENT_USER\Software\SharpCrafters\PostSharp 3::LicenseKey (registry value)
    HKEY_CURRENT_USER\Software\SharpCrafters\PostSharp 3\License Keys
    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SharpCrafters\PostSharp 3::LicenseKey (registry value)
    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SharpCrafters\PostSharp 3\License Keys
    

    If that does not help, please send us the full build log (msbuild FailingProject.csproj /t:Rebuild /v:diag).

    Thanks a lot.

    Best,
    Daniel

  4. 4 Posted by adam.askew on 08 Mar, 2018 12:12 PM

    adam.askew's Avatar

    Thanks, removing those registry values didn’t help.

    I have attached the output as requested.

    Thanks for your help

    Adam

  5. Support Staff 5 Posted by PostSharp Techn... on 12 Mar, 2018 09:39 AM

    PostSharp Technologies's Avatar

    Hello Adam,

    this looks like a bug in our licensing module. To work-around this issue, please remove the key HKEY_CURRENT_USER\Software\SharpCrafters\PostSharp 3\ProcessedTypesCounters from registry. Then rebuild your project.

    If the problem persists after removing this registry key, please build the whole solution with the /p:PostSharpTraceLicensing=True switch and send us all the licensing trace files from %ProgramData%\PostSharp\LicensingTrace, as this issue would then be caused by one or more projects in your solution.

    The bug has been internally filed as issue #15918. We will contact you as soon as the bug fix has been released.

    For more details on our support policies and prioritization of bug fixes, please visit https://www.postsharp.net/support/policies

    Best regards,
    -tony

  6. Support Staff 6 Posted by PostSharp Techn... on 21 Mar, 2018 01:42 PM

    PostSharp Technologies's Avatar

    Hello,

    We're closing the ticket for now as the bug has been internally filed as issue #15918. We will contact you as soon as the bug fix has been released.

    For more details on our support policies and prioritization of bug fixes, please visit https://www.postsharp.net/support/policies

    Thanks,
    PostSharp Team

  7. PostSharp Technologies closed this discussion on 21 Mar, 2018 01:42 PM.

  8. PostSharp Technologies re-opened this discussion on 06 Apr, 2018 10:54 AM

  9. Support Staff 7 Posted by PostSharp Techn... on 06 Apr, 2018 10:54 AM

    PostSharp Technologies's Avatar

    Hello Adam,

    we've been trying to reproduce this issue, but with no success. Do you remember which license you have been using when building your solution and in which order? And which license have you had installed when this error has appeared for the first time?

    Have you had any further issues with licensing since I've contacted you the last time?

    Best regards,
    -tony

  10. 8 Posted by adam.askew on 06 Apr, 2018 01:13 PM

    adam.askew's Avatar

    Hi guys,

    I got some help from you and have been able to resolve the issue.

    I just had to delete some stuff from my registry.

    Adam

  11. Support Staff 9 Posted by PostSharp Techn... on 09 Apr, 2018 09:43 AM

    PostSharp Technologies's Avatar

    Hi Adam,

    OK, we're going to close this case now. Feel free to reopen it in case you'd need more help.

    Best regards,
    -tony

  12. PostSharp Technologies closed this discussion on 09 Apr, 2018 09:43 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac