GCLM_Deploy.exe and parallel building

Posted by: mike on 13 August 2022, 2:39 am EST

    • Post Options:
    • Link

    Posted 13 August 2022, 2:39 am EST

    When attempting to build a solution with an outdated license manager, many parallel builds attempt to download GLCM_Deploy.exe simultaneously which causes the following error:

    error MSB3923: Failed to download file "https://cdn.grapecity.com/license/gclm_deploy.exe".  The process cannot access the file 'C:\Users\username\\AppData\Local\Temp\gclm_deploy.exe' because it is being used by another process.
    

    A coworker started an upgrade of the code, and I haven’t gotten around to installing and licensing the upgrade yet on my computer. An automatic trial period was begun. Which all works nicely as expected.

    I believe a simple change to your GrapeCity.ActiveReports.Targets file will avoid this error:

    • “From this:”
    
        <!-- Download gclm deploy tool -->
        <DownloadFile SourceUrl="https://cdn.grapecity.com/license/gclm_deploy.exe" DestinationFolder="$(TempFolder)" Condition="$(NeedDownloadGclm) == 'Yes'" SkipUnchangedFiles="false"/>
    
    • “To This:”
        <!-- Download gclm deploy tool -->
        <DownloadFile SourceUrl="https://cdn.grapecity.com/license/gclm_deploy.exe" DestinationFolder="$(TempFolder)" Condition="$(NeedDownloadGclm) == 'Yes'" SkipUnchangedFiles="[b]true[/b]"/>
    
    
  • Posted 21 August 2022, 10:53 pm EST

    Hi Mike,

    Thanks for the suggestion. Could you please try separately downloading and installing the GCLM in the machine first and then running the builds?

    You can download and install GCLM using the following command line:

    
    > curl https://cdn.grapecity.com/license/gclm_deploy.exe -O gclm_deply.exe
    > start gclm_deploy.exe 
    
    
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels