This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > executing a dll on site?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author executing a dll on site?
2Drunk2Funk

2004-08-24, 8:15 am

I have a registration form which needs to call a DLL with a status.

I thought I could use server.execute but it is returning error saying

Invalid URL form or fully-qualified absolute URL was used. Use relative URLs

My registration form is located in it's own virtual directory while the DLLs are located in a root cgidir, for example;

http://www.mysite.com/registrations/clientname/register/default.asp

and dll is in
http://www.mysite.com/cgidir/statuscall.dll

I tried using ;
code:
<P>Thanks for registering your product</P> <% regcall = "http://" & Request.ServerVariables("HTTP_HOST") & "/cgidir/statuscall.exe?" & request.QueryString & "&STATUS=1" server.Execute(regcall) %>

Which gives right location but is outside the application and causes error.
New to all this web dev and ASP so I have limited knowledge at moment.
2Drunk2Funk

2004-08-24, 3:25 pm

More info, in case anyone can help.


Not a DLL, I meant to say an EXE

In the IIS 5 on the server there is a site entry with lots of folders below it, one being a cgidir which has the exe file that need executing with passed queryString

statuscall.exe?var1=blah&var2=123455&var3=.......

Also below the site entry is my virtual entry pointing to the registration form I wrote.
The actual asp file called is 3 directories down from the entry point.

mysite.com/virtualsite/dir1/dir2/dir3/default.asp
When the form is submitted a record is put into the database and the form which gets called to say "thanks for registering", regok.asp needs to call this EXE program with passed queryString so it can connect to a server/port and send a status.

How do I setup in IIS access from my virtual site to the cgidir directory?
OR, how do I execute the EXE with the parameters from my regok.asp ?

Anyone?
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews