Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I run an Out of Process EXE from ASP?
Message
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00688379
Message ID:
00688595
Vues:
23
>Hi all,
>
>We have developed a VFP application that was working as a 'wrapper' to another client/server application. The parent application has now been rewritten using IIS and Active Server Pages as the 'client' access to the SQL Database and we would like to be able to launch our out of process exe from the ASP pages. I thought that the Windows Script Host and its 'Run' method would get us there when called from a VBScript applet imbedded in one of the ASP pages. I am using the following VBScript code to get the WSH running:
>
>
><SCRIPT LANGUAGE=vbscript>
>
>Function StartWSH()
>' This fires to bring up the CHC Registration screen
>Dim oShell
>oShell = CreateObject("WScript.Shell")
>oShell.Run("vfpapp.exe")
>End Function	
>
></SCRIPT>
>
>
>When I load the ASP page, it loads OK. When I click on the button that calls this function from within the ASP Page I get the following error:
>
>VBSctipt runtime error: Active X component cannot create object "WScript.Shell".
>
>Yet, when I execute these commands from a VFP command window, it fires the program just as I expected.
>
>Anyone have some advice as to what was done wrong?
>
>Appreciate the help.

I ran into this problem while working on the examples in Rick Strahl's VFP6 Internet book. There is a box on page 55 in Chapter 4 explaining that ASP disables the loading of out-of-process components, and giving some example code that enables it. I had problems getting the code to work, which may have been partly caused by a bug in IIS which made the change not "stick" the first time and partly by my not referring to my own metabase correctly.

It was a long time ago and I don't remember the details, but I see you have a premier membership (which I don't). Eric Moore was the guy who helped me at the time. The thread was in the VFP forum, not this one, I think. It would be a year or two old. You might find it with a search on words like "out of process", "Strahl", and so on.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform