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.028. 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?
0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings