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.

FileNotFoundException with EventHandler and NetworkWatcherEventArgs

Can you help me determine why the application throws an exception? Is there other information I can provide? The application runs fine on the development PC, but not on the production PC. Thank you.

 

1. Exception text: System.IO.FileNotFoundException

2. Dev environment: Visual Studio 2010, C#, Windows 7 64-bit

3. Exception occurs when attempting to create event handlers:

                this.Found += new EventHandler<NetworkWatcherEventArgs>(robot_Found);

                this.Lost += new EventHandler<NetworkWatcherEventArgs>(robot_Lost);

4. Installed PCSDK on the destination PC


5. VS references:



 

6. If the event handler lines of code are removed, and nothing else within the code attempts to communicate with the robot, the application runs fine.

7. Developed with RobotStudio 6.02

8. Dev pc directory config:




Comments

  • I think the destination pc is missing the proper robot comm runtime. I am attempting to install 6.02 but am receiving the below error during installation. I am installing with admin rights. Any guesses?