Author Topic: ASP application or Windows Service  (Read 1616 times)

Mason.Radke

  • Newbie
  • *
  • Posts: 2
    • View Profile
ASP application or Windows Service
« 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. 

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: ASP application or Windows Service
« Reply #1 on: October 23, 2013, 01:31:37 PM »
AdvancedHMI is designed around being a windows forms application. It's not supported for other uses.

Mason.Radke

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: ASP application or Windows Service
« Reply #2 on: October 23, 2013, 01:37:48 PM »
Thanks for the quick reply.