Hi RTI,
I am migrating from version 5.3 (.NET Framwork) to 6.1.0.2 (Rti.ConnextDds Nuget package) but I can't even get a participant created.
Here is the code.
var qosProvider = new QosProvider(./Qos/MyQos.xml);
var participantQos = qosProvider.GetDomainParticipantQos("MyLibrary::MyParticipant");
var participant = DomainParticipantFactory.Instance.CreateParticipant(1, particpantQos);
The CreateParticipant threw an exception in native code. The exception did not give much information.
The MyQos.xml doesn't have much in it. I just copied from the example code. I think the domain pariticpant Qos was loaded correctly.
Besides the Rti.ConnextDds nuget package, are there anything else I need? I see the runtimes folder in the output folder and the Rti.ConnextDds.dll
Thanks,
Gary
Hi Gary,
If you're getting the NuGet packages from nuget.org, you need a license file. The license error is only printed on the console; unfortunatelly is not part of the exception message.
There's more info in the getting started guide: https://community.rti.com/static/documentation/connext-dds/6.1.0/doc/manuals/connext_dds_professional/getting_started_guide/csharp/intro_pubsub_csharp.html#developing-with-the-nuget-org-package
If you have installed RTI Connext DDS and prefer to use the installed NuGet packages (instead of nuget.org) make sure to set up the nuget source. rtiddsgen generates a NuGet.Config file that does it automatically. You can configure it manually as well.
More info:
Running rtiddsgen: https://community.rti.com/static/documentation/connext-dds/6.1.0/doc/manuals/connext_dds_professional/getting_started_guide/csharp/intro_pubsub_csharp.html#run-code-generator
Configuring a nuget source: https://community.rti.com/static/documentation/connext-dds/6.1.0/doc/manuals/connext_dds_professional/getting_started_guide/csharp/intro_keys_instances.html#compile-the-applications
Alex
Thank you Alex. That was it.