473,594 Members | 2,651 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing/Dowloading certain filetypes...

Running IIS 6, Classic ASP
Browser: IE and/or Mozilla

I have an application that allows users to store documents on my server.
When they need to access/download the documents, my application copies their
document to a staging directory (because they're renamed to a unique filename
for storage), then Respons.redirec t()'ed to the staged file for download.

This works great for most files(.doc,.xls ,.psd,.pdf). However, I have
discovered that for certain filetypes (.asp, .exe, .xfdl), the user gets a
message box with the message "Internet Explorer cannot download myfile.xfdl
from www.mysite.com. Internet Explorer was unable to open this Internet
site. The requested site is either unavailable or cannot be found. Please
try again later."

I have looked on the server, and the file is actually there. IIS just will
not let the user access/download it.

Mozilla downloads an htm page with a "page cannot be found" error.

Any thoughts? I have the directory established as its own application and
set not to execute anything -- so it shouldn't be confusing it with a
script/app.

Thank you all,

Brandon
Nov 22 '05 #1
2 3205
I have the same problem with pst and WordPerfect files (I know, I'm sorry,
but the customer uses it).

All other downloads work fine. I would prefer for the "Open/Save/Cancel"
window to come open, but all I get is "Page not found" errors. Like you I
know the document is there and I can type in the URL for the Word document
right next to it that document appears no problem.

I'll post back if I find anything,
Randy

"Brandon" wrote:
Running IIS 6, Classic ASP
Browser: IE and/or Mozilla

I have an application that allows users to store documents on my server.
When they need to access/download the documents, my application copies their
document to a staging directory (because they're renamed to a unique filename
for storage), then Respons.redirec t()'ed to the staged file for download.

This works great for most files(.doc,.xls ,.psd,.pdf). However, I have
discovered that for certain filetypes (.asp, .exe, .xfdl), the user gets a
message box with the message "Internet Explorer cannot download myfile.xfdl
from www.mysite.com. Internet Explorer was unable to open this Internet
site. The requested site is either unavailable or cannot be found. Please
try again later."

I have looked on the server, and the file is actually there. IIS just will
not let the user access/download it.

Mozilla downloads an htm page with a "page cannot be found" error.

Any thoughts? I have the directory established as its own application and
set not to execute anything -- so it shouldn't be confusing it with a
script/app.

Thank you all,

Brandon

Jan 18 '06 #2
It's probably because it's an unknown MIME type. You'll need to add it
manually in the website properties->HTTP Headers->MIME Types window.

Jevon
"Randy" <Ra***@discussi ons.microsoft.c om> wrote in message
news:1F******** *************** ***********@mic rosoft.com...
I have the same problem with pst and WordPerfect files (I know, I'm sorry,
but the customer uses it).

All other downloads work fine. I would prefer for the "Open/Save/Cancel"
window to come open, but all I get is "Page not found" errors. Like you I
know the document is there and I can type in the URL for the Word document
right next to it that document appears no problem.

I'll post back if I find anything,
Randy

"Brandon" wrote:
Running IIS 6, Classic ASP
Browser: IE and/or Mozilla

I have an application that allows users to store documents on my server.
When they need to access/download the documents, my application copies
their
document to a staging directory (because they're renamed to a unique
filename
for storage), then Respons.redirec t()'ed to the staged file for download.

This works great for most files(.doc,.xls ,.psd,.pdf). However, I have
discovered that for certain filetypes (.asp, .exe, .xfdl), the user gets
a
message box with the message "Internet Explorer cannot download
myfile.xfdl
from www.mysite.com. Internet Explorer was unable to open this Internet
site. The requested site is either unavailable or cannot be found.
Please
try again later."

I have looked on the server, and the file is actually there. IIS just
will
not let the user access/download it.

Mozilla downloads an htm page with a "page cannot be found" error.

Any thoughts? I have the directory established as its own application
and
set not to execute anything -- so it shouldn't be confusing it with a
script/app.

Thank you all,

Brandon

Jan 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1833
by: Jakob Bengtsson | last post by:
Hi, Does anyone know how to get the icons for all filetypes installed on the system? I can extract the associated icon from a file, but I don't know how to: 1) Get a list of filetypes; 2) Get the associated icon for those filetypes. Thanks for any help,
1
7815
by: Justin Straube | last post by:
Hopefully someone can catch what im missing here. Ive googled this and I think Ive got the filetypes arg written properly, but I get a traceback when calling this function. Heres the code followed by its traceback. def do_ask_fn_1(): z = askopenfilename(title=TITLE, initialdir=Dst_Dir, filetypes=(('AIFF Files','*.aiff'), ("AU Files", "*.au"),
13
8143
by: lupher cypher | last post by:
Hi, I'm trying to access memory directly at 0xb800 (text screen). I tried this: char far* screen = (char far*)0xb8000000; but apparently c++ compiler doesn't know "far" (says "syntax error before *"). I've tried using __far, _far, FAR, _FAR, and __FAR, all with the same result. So, then I tried this:
1
1818
by: Daniel | last post by:
streaming random filetypes from .aspx how to stream a file from inside a .aspx? e.g. so one could go href="./foo.aspx?file=bar.mp3" or href="./foo.aspx?foo.dat" etc. preferabley i would like all file types to open with "save as" when href clicked
3
3746
by: Michael Iantosca | last post by:
I have a custom attribute that I attach to certain pages in my application and I want to inspect each page request as it is made to see if the custom attribute is attached to the underlying page class. If is attached I want to perform some action. How can I access custom attributes from an HttpModule? I have to pass a target to the System.Attribute.GetCustomAttribute() call to attempt to retrieve the attached attribute. I tried to access...
13
14717
by: Joseph Garvin | last post by:
When I first came to Python I did a lot of C style loops like this: for i in range(len(myarray)): print myarray Obviously the more pythonic way is: for i in my array: print i
3
4987
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : >************************************************************************ > <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ > Public Function HelloWorld() As > <System.Xml.Serialization.SoapElementAttribute("return")> String
8
10813
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList steps successfully with the following code... Control myContainer = (Control)Wizard1.FindControl("SideBarContainer"); DataList mySideBarList = (DataList)myContainer.FindControl("SideBarList");
4
2437
by: supriyamk | last post by:
Hi, I am trying to search a directory for subdirectories, recreate the subdirectories elsewhere and copy only certain files from current subdirectory to new subdirectory. In other words i am sorting filetypes into subdirectories with same name. so far i have been able to create the subdirectories, but i am not able to copy the files into those directories. my code is : use strict; use warnings; use File::Glob;
0
7941
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7874
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8000
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6652
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5738
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5404
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1476
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1205
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.