Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

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