LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does comments.vi stop working when server directory changes?

With web server root directory set to "C:\Program Files\National Instruments\LabVIEW 8.2\www",
I point my browser to "http://localhost/cgi-bin/examples/comments.vi" and I get the comment form.

Next, I quit the G Web Server, set the server root to "c:\ats\www",
I copy the comments.vi and comments.llb files to c:\ats\www\cgi-bin and point my browser to http://localhost/cgi-bin/comments.vi.  Instead of showing the form as before, I get a dialog box prompting me to either "Open with..." or "Save to disk".  I'm using Firefox.  Why does this happen?  Is there a configuration that I must set up to get the G Web Server to work at other than the default location?
0 Kudos
Message 1 of 5
(2,912 Views)
kc64,
 
To your browser, you're looking at a website (served on localhost in this case) and pointing to a specific file (in this case a VI).  Just as if you point your browser to an address of the form www.website.com/file.pdf it will ask you what you want to do with the file--open or save it.  In this dialog box, you should have the option to automatically do what you select for the file type from now on.
 
The dialog box itself has nothing to do with changing your server root, it has to do with what your browser is configured (or not configured) to do with the VI file type.  As for why this didn't happen the first time and it's prompting you now, maybe the action got changed for the VI file type.  This can be configured in Firefox by going to the content tab of tools->options.
 
Regards,
 
Craig D
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(2,897 Views)
I have to wonder how the browser setting could have been changed within that five minute span of the experiement.  I was thinking that if the server were running correctly, that it would have returned the markup that the VI generates.  But, if the server were not working correctly, the browser would have received the actual .vi file which it would not understand and would therefore have asked the question about opening or saving.

The only thing that changed in the experiment was the server root path.  Everything else remained constant.
0 Kudos
Message 3 of 5
(2,886 Views)
What version of Firefox are you using?  Does it work with Internet Explorer?

I was able to successfully do this with:
Firefox 2.0.0.6  Default configuration
Internet explorer 7.0.5730.11
Internet Toolkit 6.01
LabVIEW 8.2.1
LabVIEW 8.5

It didn't ask to save, it opened up the front panel inside the browser.

Trey B
Applications Engineering
National Instruments
0 Kudos
Message 4 of 5
(2,859 Views)
I'm using FF 2.0.0.6 and I tried it with IE6.  It works but only when the www root is set to "C:\Program Files\National Instruments\LabVIEW 8.2\www".  I only have troubles when I switch the www root to my application directory which, in this case, is "c:\ats\www".

0 Kudos
Message 5 of 5
(2,855 Views)