This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Graphics Mill License Key error.

Hi team,

I have an error when I install my windows application in a desktop computer after upgrading the GM9 last version.
I have the licence up to date till February 2019.

I have no problems in development, but when I try run the application on a desktop computer where I had apps working fine with GM I get now the message:

"No license Key found".

I have installed the VC_redist.X64 in the desktop computer, and my app is 64bit.
I have intalled the VC_redistX86 too because of I have 32bit apps.

Please can you help me. Should I change anything in the development system...??

Thanks in advance.
Fedor;32744
Hello,

Have you used the LICX file approach to unlock the distributed Windows application?

https://www.graphicsmill.com/docs/gm/registering-production-license-keys.htm#licx


Hi Fedor,

I have followed all the steps described in the "Using Licenses.lics Files.

attach #1399

I have done too:

Resolving a Problem with Licenses.licx File in 64-bit Application
Visual Studio 2010 uses a 32-bit version of the license compiler, even though a project is configured as 64-bit. To work around this issue open your Visual Studio project file in a text editor and add the following line to all of your 64-bit configurations:


<LCToolPath>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\x64</LCToolPath>


Replacing in my case the Path for the correct for me:

<LCToolPath>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.1 Tools\x64</LCToolPath>


I have tried to uninstall and install again the VC_Redist (64 and 32 bit).
In my development machine all works fine. But not in the others desktop machines.

I´m really lost.
Hi,

I believe there is no sense to reinstall VC_Redist. If you get an exception about license key - it works fine.

Could you create a simple console application to reproduce the problem and post it here?
Eugene Kosmin;32747
Hi,

I believe there is no sense to reinstall VC_Redist. If you get an exception about license key - it works fine.

Could you create a simple console application to reproduce the problem and post it here?


Ok, I have tested the error with a console app. Here you can see the code:

using Aurigma.GraphicsMill;
using Aurigma.GraphicsMill.Codecs;

namespace ConsoleExample
{
    class Program
    {
        static void Main(string[] args)
        {

            var borderColor = RgbColor.Blue;
            int borderWidth = 20;

            using (var reader = ImageReader.Create(@"W:\test.png"))
            using (var generator = new ImageGenerator(reader.Width + borderWidth * 2,
                reader.Height + borderWidth * 2, reader.PixelFormat, borderColor))
            using (var blender = new Aurigma.GraphicsMill.Transforms.Blender())
            using (var writer = ImageWriter.Create(@"W:\out.png"))
            {
                blender.TopImage = reader;
                blender.X = borderWidth;
                blender.Y = borderWidth;

                (generator + blender + writer).Run();
            }
        }
    }
}


Attached the error result:

attach #1400
Could you also share the .csproj file? This one is mine, and it works fine.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{6B45CE69-D0DF-443E-84FF-A6DFAA29F91B}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <RootNamespace>ConsoleApp20</RootNamespace>
    <AssemblyName>ConsoleApp20</AssemblyName>
    <TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
    <LCToolPath>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\x64</LCToolPath>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <PlatformTarget>x64</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Aurigma.GraphicsMill, Version=9.3.37.0, Culture=neutral, PublicKeyToken=f4bbbf243f314012, processorArchitecture=AMD64">
      <HintPath>packages\Aurigma.GraphicsMill.Core.x64.9.3.37\lib\net40\Aurigma.GraphicsMill.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="System.Data" />
    <Reference Include="System.Net.Http" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="App.config" />
    <None Include="packages.config" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="Licenses.licx" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
This is the .csproj

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{43EC1713-E55F-467F-9266-009542106061}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <RootNamespace>ConsoleExample</RootNamespace>
    <AssemblyName>ConsoleExample</AssemblyName>
    <TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup>
    <StartupObject>ConsoleExample.Program</StartupObject>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Aurigma.GraphicsMill, Version=9.3.33.0, Culture=neutral, PublicKeyToken=f4bbbf243f314012, processorArchitecture=AMD64">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>C:\Program Files (x86)\Aurigma\Graphics Mill 9 SDK\.Net 4.0\Binaries_x86\Aurigma.GraphicsMill.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="System.Data" />
    <Reference Include="System.Net.Http" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="App.config" />
  </ItemGroup>
  <ItemGroup>
    <WCFMetadata Include="Connected Services\" />
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
I don’t see the following in your file.

<EmbeddedResource Include="Licenses.licx" />


This is an essential thing. It looks like you didn’t add the Licenses.licx text file.
Eugene Kosmin;32752
I don’t see the following in your file.

<EmbeddedResource Include="Licenses.licx" />


This is an essential thing. It looks like you didn’t add the Licenses.licx text file.


Hi Eugene,

I have solved the problem. You are right, my project doesn´t include the .licx file.
The error was that it does appear in the project but I didn´t right click to select as "included" file.

After that, clean and recompile project and all works fine.

Thanks so much.