1
Support Questions / Using AdvancedHMI Drivers in a Windows Service v3.97
« on: January 10, 2015, 01:14:17 PM »
Since updating to v3.97 and visual studio 2013. I am having an issue where everytime I try to write to the PLC I'm getting:
System.Windows.Forms; Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Since this is a windows service I am not using any forms in my code...I know it's stemming from the AdvancedHMI Driver references because I had a recent issue where a window was popping up says Incomplete Solution.
I was under the assumption that error was corrected when I added all of the AdvancedHMI projects to my solution. Now since installing on the production machine (and I'm actually connected to PLC's) I'm getting a similar error about the WindowsForms in my log, yet when I step through the code in debug mode (user interactive mode) everything writes to the PLC without issue.
I'm out of ideas here. Archie please is there anything you can think of here...
System.Windows.Forms; Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Since this is a windows service I am not using any forms in my code...I know it's stemming from the AdvancedHMI Driver references because I had a recent issue where a window was popping up says Incomplete Solution.
I was under the assumption that error was corrected when I added all of the AdvancedHMI projects to my solution. Now since installing on the production machine (and I'm actually connected to PLC's) I'm getting a similar error about the WindowsForms in my log, yet when I step through the code in debug mode (user interactive mode) everything writes to the PLC without issue.
I'm out of ideas here. Archie please is there anything you can think of here...