.net - Using Service Controller in Classic ASP -


i'm trying see if can use servicecontroller in classic asp page page can send custom commands windows service. articles , questions have read online using asp.net or application/component (but sadly i'm limited using classic asp). both of attempts failed because error:

microsoft vbscript compilation error '800a0401' expected end of statement

here 2 attempts @ trying use servicecontroller on asp page:

attempt #1 expected end of statement points '('

dim myservice set myservice = new servicecontroller("mynewservice") myservice.executecommand(0) myservice.executecommand(1) myservice.executecommand(2) 

attempt #2 expected end of statement points 'as'

dim myservice new servicecontroller("mynewservice") myservice.executecommand(0) myservice.executecommand(1) myservice.executecommand(2) 

so, possible use servicecontroller in classic asp? please explain how possible or why not possible.

servicecontroller .net class, vbscript has no idea is.

given not exposed via com cannot used within vbscript.

create .net com visible assembly wraps calls servicecontroller, instantiate in vbscript (server.createobject()) , call methods have implemented in c#/vb.net need.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -