AdvancedHMI Software

General Category => Support Questions => Topic started by: Mason.Radke on October 23, 2013, 12:46:46 PM

Title: ASP application or Windows Service
Post by: Mason.Radke on October 23, 2013, 12:46:46 PM
My ultimate goal is to create an ASP web application using these drivers.  Since it doesn't appear that is directly supported, i was going to write a window service that will use the drivers and grab data on a schedule to be put into a SQL database.  This way I can write the ASP application to pull its data from SQL instead of the comm drivers and will achieve the same goal.

My question, is it possible to use the the drivers without using windows forms?

When i try to add them while creating the service i get the following error on the "SynchronizingObject" property of the driver:

'Unable to cast object of type 'System.ServiceProcess.ServiceBase' to type 'System.ComponentModel.ISynchronizeInvoke'.

in the example that property references the main windows form. 
Title: Re: ASP application or Windows Service
Post by: Archie on October 23, 2013, 01:31:37 PM
AdvancedHMI is designed around being a windows forms application. It's not supported for other uses.
Title: Re: ASP application or Windows Service
Post by: Mason.Radke on October 23, 2013, 01:37:48 PM
Thanks for the quick reply.