NullReferenceException in Tutorial Lesson 1

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

Moderator: uasdknet

Post Reply
thomas-jung
Jr. Member
Jr. Member
Posts: 3
Joined: 20 May 2015, 09:32

NullReferenceException in Tutorial Lesson 1

Post by thomas-jung »

I am trying to run the very first Tutorial example, Lesson 1.

In the line "ApplicationInstance.Default.Start(server, null, server);" there appears get a null-reference exception (see attachment). What am i doing wrong?

Using Visual Studio 2013, Windows 7.

StackTrace:

at UnifiedAutomation.UaServer.ServerSettings..ctor(ApplicationInstance application)
at UnifiedAutomation.UaServer.ServerManager.OnServerStarting(ApplicationInstance application)
at UnifiedAutomation.UaBase.ServerBase.Start(ApplicationInstance application)
at UnifiedAutomation.UaServer.ServerManager.Start(ApplicationInstance application)
at UnifiedAutomation.UaBase.ApplicationInstance.Start(ServerBase server, WaitCallback callback, Object userData)
at OPCUAServer.Program.Main(String[] args) in e:\dev\APA-440\Software\Application\OPCUAServer\OPCUAServer\Program.cs:line 20

thomas-jung
Jr. Member
Jr. Member
Posts: 3
Joined: 20 May 2015, 09:32

Re: NullReferenceException in Tutorial Lesson 1

Post by thomas-jung »

Fixed: After adding the configuration by code (as shown in the Lesson 1), the example works fine.

Post Reply