Announcement

Collapse
No announcement yet.

Accessing My .NET Plug-In Via ASP.NET

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Accessing My .NET Plug-In Via ASP.NET

    I can use hs.plugin to get access COM plug-ins but am unable to access my .NET plug-in via a ASP.NET (aspx) page. The .NET plug-in loads and works fine. Any ideas?
    Jim Doolittle

    My Twitter
    My Hardware & Software

    #2
    The main class (and all classes you want to access via asp.net), have to be marked as serializable and inherit MarshalByRef object. Define your class like this:


    <SERIALIZABLE()>
    PHP Code:
    <Serializable()> _
    Public Class HSPI
    Inherits MarshalByRefObject 
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Jim,

      I just went through the *very* painful process of getting an aspx page to work with a VB.Net plugin.

      Download the aspx page referenced in the post below to see an example of how to create the aspx page and interface with a plug-in. Hopefully you can use some of the code to save yourself some time...

      The aspx page also shows one approach to graph temperature data using ChartDirectory.

      http://board.homeseer.com/showpost.p...41&postcount=6

      Regards,
      Ultrajones
      Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR

      Comment

      Working...
      X