RTI license erro when trying to run C# example projects.

2 posts / 0 new
Last post
Offline
Last seen: 4 years 2 weeks ago
Joined: 11/03/2020
Posts: 22
RTI license erro when trying to run C# example projects.

I'm trying to run the RTI Connext examples in C# using the nuget packages and I keep running into this error.

 

I have the RTI tools installed and I'm currently using the 30 evaluation. I'm not sure why the examples fro the NuGet packages won't run. I assume it's a licensing issue based on this output, but I have the eval installed unless it doesn't count.

 

Ghost@SagerMeister MINGW64 /h/Storage/Vcom3D/AMM/Projects/MyExample/MyExamplePublisher/bin/Debug/netcoreapp3.0
$ ./MyExamplePublisher.exe
Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> Omg.Dds.Core.DdsException: DDS operation failed:
   at Rti.Dds.NativeInterface.Helpers.ReturnCode.CheckResult(IntPtr result)
   at Rti.Dds.NativeInterface.Domain.NativeDomainParticipant.CreateNative(Int32 domainId, DDS_DomainParticipantQos& nativeQos, Object managedParticipant)
   at Rti.Dds.NativeInterface.Domain.NativeDomainParticipant..ctor(Int32 domainId, Object managedParticipant)
   at Rti.Dds.Domain.DomainParticipant..ctor(Int32 domainId)
   at Rti.Dds.Domain.DomainParticipantFactory.CreateParticipant(Int32 domainId)
   at MyExample.MyExamplePublisher.Main(Int32 domainId, Int32 sampleCount) in H:\Storage\Vcom3D\AMM\Projects\MyExample\MyExamplePublisher\MyExamplePublisher.cs:line 43
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseErrorReporting>b__20_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass15_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass24_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__21_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseDirective>b__19_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseDebugDirective>b__11_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__10_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass6_0.<<ConfigureConsole>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass13_0.<<UseExceptionHandler>b__0>d.MoveNext()
RTI Connext DDS No source for License information
Please contact support@rti.com with any questions or comments.
Howard's picture
Offline
Last seen: 6 days 12 hours ago
Joined: 11/29/2012
Posts: 618

Yes, the libraries can't find the license.dat file.  You can set the location/path of the file using the environment variable, RTI_LICENSE_FILE.

Please check out this documentation

https://community.rti.com/static/documentation/connext-dds/6.0.1/doc/manuals/connext_dds/html_files/RTI_ConnextDDS_InstallationGuide/index.htm#InstallationGuide/License_Management.htm%3FTocPath%3D_____5