Login  •  Register


UaModeler createt App doesn't call OnRootNodeManagerStarted

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

UaModeler createt App doesn't call OnRootNodeManagerStarted

Postby VKuhnle » 10 Jul 2019, 14:07

I developped a Test Server using UaModeler, but it failes to call OnRootNodeManagerStarted
SDK Version: 3.0.0

program.cs:
class Program
{
static void Main(string[] args)
{
try
{
var assembly = PlatformUtils.GetAssembly(typeof(Program));
ApplicationLicenseManager.AddProcessLicenses(assembly, "License.lic");

// Start the server.
var server = new TestServerManager();
ApplicationInstanceBase application = ApplicationInstance.Default;

application.AutoCreateCertificate = true;
--> application.Start(server, null, server); // Throws Exception

Console.WriteLine("Endpoint URL: opc.tcp://localhost:48030");
// Block until the server exits.
Console.WriteLine("Press <enter> to exit the program.");
Console.ReadLine();
// Stop the server.
server.Stop();
}
catch (Exception e)
{
Console.WriteLine("ERROR: {0}", e.Message);
Console.WriteLine("Press <enter> to exit the program.");
Console.ReadLine();
}
}
}
}

EXCEPTION:
Code: Select all
ERROR: Server configuration does not have any endpoints defined.
Parametername: application
Press <enter> to exit the program.



TestServerManager
using UnifiedAutomation.UaServer;

namespace MyCompany.MyServer
{
internal class TestServerManager : ServerManager
{
public TestServerManager()
{
}

protected override void OnRootNodeManagerStarted(RootNodeManager nodeManager)
{
UnifiedAutomation.UaServer.BaseNodeManager nm; // Breakpoint never reached / function called...
nm = new MyServerNodeManager(this);
nm.Startup();
}
}
}

What is missing in my project? :-[
VKuhnle
Jr. Member
Jr. Member
 
Posts: 3
Joined: 27 Jun 2019, 10:51

Re: UaModeler createt App doesn't call OnRootNodeManagerStar

Postby vybihyri » 16 Jan 2020, 12:24

Nice
vybihyri
Jr. Member
Jr. Member
 
Posts: 2
Joined: 04 Jan 2020, 12:31

Re: UaModeler createt App doesn't call OnRootNodeManagerStar

Postby vybihyri » 16 Jan 2020, 12:25

The role of the sciences and their impact is run for humans. It is shared for the fulfillment of the use of the https://prowritingpartner.com/writemyessayonline-com-review/ for alloys for the field. It is anticipated for humans. The joyful means are struck for the team. Group is invited to the futurisms. the host of pure science is ensured for humans. the struggle is vital for all options.
vybihyri
Jr. Member
Jr. Member
 
Posts: 2
Joined: 04 Jan 2020, 12:31


Return to .NET based OPC UA SDK

Who is online

Users browsing this forum: MSN [Bot] and 0 guests