RobotStudio event

Conection between C# interface and Controller

I am trying to establish a connection between an interface that I made in Visual Studio, Windows Forms, in C# and my controller, I cannot solve this trouble, I have tried  2 differents ways of doing it:

First with tutorials of PC SDK and still does not work, I cannot get the network scanner to scan my controller´s IP addres.

On the other hand I have found on the internet a C# library developed by a person, the library is called Machina, and it also has many examples, but when I introduce the code in my program, it turns out an exception, and I dont know how to manage it.
If anyone knows how to solve this exception please tell me, because I am going bananas.