RobotStudio event

NetworkScanner() keeps looping [IRC5/C#]

Hi, 

I am a beginner in ABB programming via C#/SDK. I tried the getting started demo to communicate to the controller but the code loops at "NetworkScanner aScanner = new NetworkScanner();". The program does not freeze but keeps looping at this line.

Your help is much appreciated.

Regards
Mo

Comments

  • Ok. I think I fixed it. Apparently the ABB assemblies are .NET version 2.0 and does not compile in .NET v4.0. For some reason the SDK version on the internet is not raising the exception. The SDK distribution on the CD raised the exception.

    I switched the target framework to v2.0 and it worked perfectly.

    Regards
    Mo