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
NullReferenceException in Tutorial Lesson 1
Moderator: uasdknet
-
- Jr. Member
- Posts: 3
- Joined: 20 May 2015, 09:32
-
- Jr. Member
- Posts: 3
- Joined: 20 May 2015, 09:32
Re: NullReferenceException in Tutorial Lesson 1
Fixed: After adding the configuration by code (as shown in the Lesson 1), the example works fine.