I want to make a connection between a VB code and an asp-page. First I thought to connect the VB code and the asp-page via IIS, but I am not sure how to 'install' IIS and how I will make that connection. My second thought was to save the VB code into an .exe file and call the .exe file as a link in the asp-page, but when doing that an error message appeared like:
"Run-time error '-2147467259(80004005)'=Microsoft ODBC Microsoft Access Driver('unknown') is not a valid path make sure that the path name is spellt correctly and that you are connected to the server on which the file resides"
The link in the asp-page was made like this:
<INPUT TYPE="button" VALUE="CV" NAME="CV" onClick="remote=window.open ('cv.exe', 'CV', 'resize=yes');">
Does somebody know what I am doing wrong or does somebody know a better way of making the connection between VB code and asp?
Thanks in advance!
Johanna Pihlström
25-07-2002 at 06:55 AM
|
Coyote Level: Guest
Re: Error when connect VB to asp Archived to Disk
Not - REAL - sure I understand.
You cannot execute an asp page (asp code)from your machine unless you have IIS installed. If so use the WebBrowser Control and set the url path to your server. The asp page you open in your internet browser are run on the web server which has IIS installed.
SO - if you have IIS installed and want to run VB or I should say VB Script from your ASP that will work. Convert your VB code to VB script (.scr file) (watch the variables-use varient) and call that from your asp page.
Are you wanting to execute a .EXE file on the server, each time the asp page is accessed? You can't do that on the user machine unless they download the file.
Not a clue as to if this helped....
27-07-2002 at 01:47 AM
|
Pihlis Level: Guest
Help with VB, asp and IIS Archived to Disk
Hi,
Thanks for your answear.
I toughted in install IIS on my PC, but I am not sure how that will be done. If I will make a succesfull installation of IIS I will use the WebBrowser Control and set the url path to my server, ok. Must I convert the VB code into VBScript? I do not know the differences between the two languages - some tips?
Now I have saved the VB code as an .exe file and calls the file as a link in the asp-page. Yes, I do get to download (as open/save/close) the file every time it executes.
Thanks in advance!
Johanna P
29-07-2002 at 05:28 AM
|
Coyote Level: Guest
Re: Error when connect VB to asp Archived to Disk
My apology for a rather screwed up previous response. So let me see if I can explain in an orderly fashion.
Using VB to excecute ASP pages.
First - if you have IIS installed you can use VB with the Web browser control and view the ASP pages on your machine (or link to any web site that has IIS installed and view their pages).
This is what I think your wanting to do, so ignore the VBscript reference for this.
Using ASP to execute VB
I don't think this is what your asking - But
Next - If your wanting to use an ASP page to run something in VB?? ASP can execute on the IIS server - VBscript, java, JavaScript, ActiveX Controls(VB or C)....etc. - BUT everything is executed on the IIS (server) and only data or the info is passed back to the user in a web page. These scripts can be encoded into the ASP page or they can be called to run from the ASP page on the server side. You can execute something on the client side (if installed), but the server is blind to it unless it passes back something to the server.
LAST - Internet Information Server (IIS) comes as part of Windows NT. If I'm not mistaken it is on the Windows NT Option Pack CD There is a version on there for Windows 95, 98.... HOWEVER... it could be you should look into just installing "Personel Web Server" which comes with MS FrontPage...?? Also.. not sure but think WIndows XP comes with a web server, but ?
Anyway, you need a web server that will interpret ASP code, if you want to run Your Own ASP pages on Your Machine.
Hope this helps.
>>Coyote<<
29-07-2002 at 01:10 PM
|
Pihlis Level: Guest
Re: Re: Error when connect VB to asp Archived to Disk
Hi,
Thanks for answear! I will try and make some tests.