|
Home > Archive > IIS Server > June 2005 > Trouble downloading a file type on a Windows 2003 server
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 |
Trouble downloading a file type on a Windows 2003 server
|
|
| Mark Hackenberg 2005-06-29, 5:53 pm |
| Hi,
We have a program that creates a .txt and an .iif file on our 2003 server,
then we get a link through Internet Explorer where we can view and download
these files. They are both put into the same directory on the server. I can
view the .txt file but the .iif file comes up to a Page Cannot be Found page.
The file is there but IE cannot see it.
I tried adding it to the MIME files type, but to no avail. I even added a
..* with a type of application/octet-stream, but that doesn't seem to work
either. Am I doing something wrong? Do I need to restart IIS or the
individual web site? I really know very little about IIS so any help would
be appreciated.
Thanks,
Mark
| |
| Kristofer Gafvert [MVP] 2005-06-29, 5:53 pm |
| Yes, you need to add a MIME type for IIS to serve the file.
You do not need to restart IIS for this to take affect.
You say that "it does not work" after you have added a MIME type (do not
use a wildcard, since you only want one file extension!). What does "does
not work" mean? You are still getting a 404 Page not found? Or are you
asked to download the file, but you want to show it in the browser?
Also see this KB Article for instructions:
"IIS 6.0 Does Not Serve Unknown MIME Types"
http://support.microsoft.com/defaul...kb;en-us;326965
--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com
Mark Hackenberg wrote:
> Hi,
>
> We have a program that creates a .txt and an .iif file on our 2003
server,
> then we get a link through Internet Explorer where we can view and
download
> these files. They are both put into the same directory on the server.
I can
> view the .txt file but the .iif file comes up to a Page Cannot be Found
page.
> The file is there but IE cannot see it.
>
> I tried adding it to the MIME files type, but to no avail. I even added
a
> .* with a type of application/octet-stream, but that doesn't seem to work
> either. Am I doing something wrong? Do I need to restart IIS or the
> individual web site? I really know very little about IIS so any help
would
> be appreciated.
>
> Thanks,
>
> Mark
| |
| Mark Hackenberg 2005-06-29, 5:53 pm |
| I'm sorry, I mean I am still getting the 404. I am trying to get to the
download, or even to view it in IE.
Thanks,
Mark
"Kristofer Gafvert [MVP]" wrote:
> Yes, you need to add a MIME type for IIS to serve the file.
>
> You do not need to restart IIS for this to take affect.
>
> You say that "it does not work" after you have added a MIME type (do not
> use a wildcard, since you only want one file extension!). What does "does
> not work" mean? You are still getting a 404 Page not found? Or are you
> asked to download the file, but you want to show it in the browser?
>
> Also see this KB Article for instructions:
>
> "IIS 6.0 Does Not Serve Unknown MIME Types"
> http://support.microsoft.com/defaul...kb;en-us;326965
>
> --
> Regards,
> Kristofer Gafvert (IIS MVP)
> www.gafvert.info - My Articles and help
> www.ilopia.com
>
>
> Mark Hackenberg wrote:
>
> server,
> download
> I can
> page.
> a
> would
>
| |
| Kristofer Gafvert [MVP] 2005-06-29, 5:53 pm |
| And you followed the steps in the KB Article? Do you have URLScan
installed?
Can you please look in the IIS log file on a request for a iif-file. What
is the substatus code (logged as sc-substatus)?
--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com
Mark Hackenberg wrote:
[vbcol=seagreen]
> I'm sorry, I mean I am still getting the 404. I am trying to get to the
> download, or even to view it in IE.
>
> Thanks,
>
> Mark
>
> "Kristofer Gafvert [MVP]" wrote:
>
not[vbcol=seagreen]
"does[vbcol=seagreen]
server.[vbcol=seagreen]
Found[vbcol=seagreen]
added[vbcol=seagreen]
work[vbcol=seagreen]
| |
| Mark Hackenberg 2005-06-29, 5:53 pm |
| It works now. Thank you very much for your help. That article was a real
help.
"Kristofer Gafvert [MVP]" wrote:
> Yes, you need to add a MIME type for IIS to serve the file.
>
> You do not need to restart IIS for this to take affect.
>
> You say that "it does not work" after you have added a MIME type (do not
> use a wildcard, since you only want one file extension!). What does "does
> not work" mean? You are still getting a 404 Page not found? Or are you
> asked to download the file, but you want to show it in the browser?
>
> Also see this KB Article for instructions:
>
> "IIS 6.0 Does Not Serve Unknown MIME Types"
> http://support.microsoft.com/defaul...kb;en-us;326965
>
> --
> Regards,
> Kristofer Gafvert (IIS MVP)
> www.gafvert.info - My Articles and help
> www.ilopia.com
>
>
> Mark Hackenberg wrote:
>
> server,
> download
> I can
> page.
> a
> would
>
|
|
|
|
|