License isn't working

adam.askew's Avatar


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 to acquire a license of PostSharp.


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

    PostSharp Technologies's Avatar


    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?


    Best regards,

  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?


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

    PostSharp Technologies's Avatar


    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.


  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


  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

    Best regards,

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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