I have made a C# program in Visual Studio 2022 and included my recently bought OPC UA Key-file in the solution, following the three steps
Managed Resource License Store
.
But when I run my program on the target computer it says "This is a stock demo or trial license" and it stops working after 30min.
The strangest thing is that I made another C# program maybe two month earlier, with the same key-file, and it is working like a charm.
I'm foremost a PLC programmer, and this was my first s with Visual studio and OPC, so it could be something simple.
While checking some other posts, it seems it is important that it is the correct operating system (32 or 64 bit). I have compered the two projects, and can not find any differences (although I do not know I have looked everywhere).
The target computer is 64-bit (Windows 11).
On the first project (that is working), I had no idea what I was doing in Visual Studio, so I might have done something there, that I have missed on the new project.
I have redone and triple check my "RegisterManagedResourceWithExistenceCheck" code, and cannot find any thing wrong.
LicensingManagement.Instance.RegisterManagedResourceWithExistenceCheck("QuickOPC", "Multipurpose", Assembly.GetExecutingAssembly(), "Ortic_XL_Profile_mill.Resources.Key-Permanent-ShareIt-1999324139-20240827.txt");
[img ]C:\Tmp\Key file embedded.png[/img]
I need help to trouble shoot this problem.