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

Notification

Icon
Error

Options
Go to last post Go to first unread
Franchi_S5  
#1 Posted : Tuesday, August 21, 2018 4:36:37 AM(UTC)
Franchi_S5

Rank: Advanced Member

Groups: Guest
Joined: 3/8/2018(UTC)
Posts: 45

Thanks: 21 times
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  
#2 Posted : Tuesday, August 21, 2018 8:35:27 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Guest
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hello,

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

https://www.graphicsmill.com/doc...on-license-keys.htm#licx

Best regards,

Fedor Skvortsov

thanks 1 user thanked Fedor for this useful post.
Franchi_S5 on 8/22/2018(UTC)
Franchi_S5  
#3 Posted : Wednesday, August 22, 2018 1:40:39 AM(UTC)
Franchi_S5

Rank: Advanced Member

Groups: Guest
Joined: 3/8/2018(UTC)
Posts: 45

Thanks: 21 times
Originally Posted by: Fedor Go to Quoted Post
Hello,

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

https://www.graphicsmill.com/doc...on-license-keys.htm#licx

Hi Fedor,

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

project_licx.jpg

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:

Code:
<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:

Code:
<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.

Eugene Kosmin  
#4 Posted : Thursday, August 23, 2018 5:22:50 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Guest
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
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?

Best regards,

Eugene Kosmin

The Aurigma Development Team

Franchi_S5  
#5 Posted : Friday, August 24, 2018 1:44:39 AM(UTC)
Franchi_S5

Rank: Advanced Member

Groups: Guest
Joined: 3/8/2018(UTC)
Posts: 45

Thanks: 21 times
Originally Posted by: Eugene Kosmin Go to Quoted Post
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:

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:

error_console.jpg

Eugene Kosmin  
#6 Posted : Sunday, August 26, 2018 5:50:20 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Guest
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Could you also share the .csproj file? This one is mine, and it works fine.

Code:
<?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>
Best regards,

Eugene Kosmin

The Aurigma Development Team

thanks 1 user thanked Eugene Kosmin for this useful post.
Franchi_S5 on 8/27/2018(UTC)
Franchi_S5  
#7 Posted : Monday, August 27, 2018 12:57:35 AM(UTC)
Franchi_S5

Rank: Advanced Member

Groups: Guest
Joined: 3/8/2018(UTC)
Posts: 45

Thanks: 21 times
This is the .csproj

Code:
<?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>
Eugene Kosmin  
#8 Posted : Wednesday, August 29, 2018 4:03:21 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Guest
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
I don’t see the following in your file.

Code:
<EmbeddedResource Include="Licenses.licx" />

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

Best regards,

Eugene Kosmin

The Aurigma Development Team

thanks 1 user thanked Eugene Kosmin for this useful post.
Franchi_S5 on 8/30/2018(UTC)
Franchi_S5  
#9 Posted : Thursday, August 30, 2018 2:41:37 AM(UTC)
Franchi_S5

Rank: Advanced Member

Groups: Guest
Joined: 3/8/2018(UTC)
Posts: 45

Thanks: 21 times
Originally Posted by: Eugene Kosmin Go to Quoted Post
I don’t see the following in your file.

Code:
<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.

Users browsing this topic
Guest (7)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.