Download .cub file w/client side script on Web Server 2003

  • Thread starter Thread starter Craig Conly
  • Start date Start date
C

Craig Conly

I was able on an XP machine to use an HTML button with
the following client-side javascript:
onclick="window.navigate('/xxxxxx.cub')"
that would allow the client to either save the file or
open it (with Excel). When I deployed the application to
a Windows Server 2003 Web Edition web server and clicked
as before, I received error #404, file not found.
Testing with a text file, instead of the "save/open"
routine, the text file opened in the browser. This would
seem to indicate that the 'window.navigate' command is
compiling differently in the two machines. Or?

So, what to do?

Help will be much appreciated!
 
I'm only guessing here, but due to the change in the way security works in
'03, I would suggest that the server is denying access to CUB files.
There's probably a setting in a .config or the properties of the web server
folder somewhere that you will need to change to allow users to download CUB
files.

Hope this helps.
Trevor Braun
 
Back
Top