IIS Server - IIS 5.0 http file transfer

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > July 2005 > IIS 5.0 http file transfer





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 IIS 5.0 http file transfer
msdn_user

2005-06-30, 6:01 pm

Does any one know if IIS 5.0, blocks http file download of files with certain
extensions such as ".map" (perhaps security reasons) . I am trying to write
an application (mfc http inet calls) that needs to download binary files with
a .map extention (a proprietary binary) from a IIS 5.0 server. If the file
name is changed to say .map.1, the code works. Thought it was a MIME issue
and have checked client GET headers etc. Also, have looked at IIS server but
couldn't find anything. I get an HTTP server 500 error when the download
fails, not much to go on. Any thoughts anyone?
--
msdn_user
Jeff Cochran

2005-07-01, 2:48 am

On Thu, 30 Jun 2005 09:33:02 -0700, msdn_user
<msdnuser@discussions.microsoft.com> wrote:

>Does any one know if IIS 5.0, blocks http file download of files with certain
>extensions such as ".map" (perhaps security reasons) . I am trying to write
>an application (mfc http inet calls) that needs to download binary files with
>a .map extention (a proprietary binary) from a IIS 5.0 server. If the file
>name is changed to say .map.1, the code works. Thought it was a MIME issue
>and have checked client GET headers etc. Also, have looked at IIS server but
>couldn't find anything. I get an HTTP server 500 error when the download
>fails, not much to go on. Any thoughts anyone?


Start here:

Why do I get a 500 Internal Server error for all ASP errors?
http://www.aspfaq.com/show.asp?id=2109

URLScan would possibly do this. Check the logfiles and see what's
happening. Create a mime type for the .MAP extension.

Jeff
msdn_user

2005-07-01, 5:57 pm

Thanks for your response. Creating a mime type for the .map extension
(application/octet-stream) on IIS (5.0) server made no difference. No Urlscan
running. Turning of friendly messages makes no difference and the log files
show absolutely nothing. I'm sort of at an impasse, not sure what else to
look at....
--
msdn_user


"Jeff Cochran" wrote:

> On Thu, 30 Jun 2005 09:33:02 -0700, msdn_user
> <msdnuser@discussions.microsoft.com> wrote:
>
>
> Start here:
>
> Why do I get a 500 Internal Server error for all ASP errors?
> http://www.aspfaq.com/show.asp?id=2109
>
> URLScan would possibly do this. Check the logfiles and see what's
> happening. Create a mime type for the .MAP extension.
>
> Jeff
>

msdn_user

2005-07-01, 5:57 pm

The log files showed the following message,

#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2005-07-01 17:43:24
#Fields: date time c-ip cs-username s-sitename s-computername s-ip s-port
cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes
cs-bytes time-taken cs-version cs-host cs(User-Agent)
2005-07-01 17:43:24 129.xxx.xxx.xx - W3SVC1 MYSERVER 129.xxx.xxx.xx 80 GET
/my.map - 500 50 0 81 16 HTTP/1.1 MYSERVER MyApp/1.0

when I looked up the code returned for sc-win32-status - the error message
was 'The request is not supported'.

Not sure why the server would not support the request.
--
msdn_user


"Jeff Cochran" wrote:

> On Thu, 30 Jun 2005 09:33:02 -0700, msdn_user
> <msdnuser@discussions.microsoft.com> wrote:
>
>
> Start here:
>
> Why do I get a 500 Internal Server error for all ASP errors?
> http://www.aspfaq.com/show.asp?id=2109
>
> URLScan would possibly do this. Check the logfiles and see what's
> happening. Create a mime type for the .MAP extension.
>
> Jeff
>

Jeff Cochran

2005-07-02, 5:50 pm

On Fri, 1 Jul 2005 09:33:03 -0700, msdn_user
<msdnuser@discussions.microsoft.com> wrote:

>Thanks for your response. Creating a mime type for the .map extension
>(application/octet-stream) on IIS (5.0) server made no difference. No Urlscan
>running. Turning of friendly messages makes no difference and the log files
>show absolutely nothing. I'm sort of at an impasse, not sure what else to
>look at....

I would think if you assigned a mime type of Text to the file you
should at least get it to download. Try a simple text file with a MAP
extension.

Jeff
David Wang [Msft]

2005-07-03, 7:47 am

Sounds like something else on your server is blocking .map extension from
downloading. My test .map resources are downloading just fine on IIS5.

Do you have an application mapping for .map defined for that URL namespace
and do you have at least "Scripts" execute permissions enabled?

Do you have any other ISAPI (Filter or Extension) that could be rejecting
..map requests for their own arbitrary reasons?

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"msdn_user" <msdnuser@discussions.microsoft.com> wrote in message
news:CA60776F-D3B1-48D2-9425-CC32D49F61AB@microsoft.com...
The log files showed the following message,

#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2005-07-01 17:43:24
#Fields: date time c-ip cs-username s-sitename s-computername s-ip s-port
cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes
cs-bytes time-taken cs-version cs-host cs(User-Agent)
2005-07-01 17:43:24 129.xxx.xxx.xx - W3SVC1 MYSERVER 129.xxx.xxx.xx 80 GET
/my.map - 500 50 0 81 16 HTTP/1.1 MYSERVER MyApp/1.0

when I looked up the code returned for sc-win32-status - the error message
was 'The request is not supported'.

Not sure why the server would not support the request.
--
msdn_user


"Jeff Cochran" wrote:

> On Thu, 30 Jun 2005 09:33:02 -0700, msdn_user
> <msdnuser@discussions.microsoft.com> wrote:
>
certain[vbcol=seagreen]
write[vbcol=seagreen]
with[vbcol=seagreen]
file[vbcol=seagreen]
issue[vbcol=seagreen]
but[vbcol=seagreen]
>
> Start here:
>
> Why do I get a 500 Internal Server error for all ASP errors?
> http://www.aspfaq.com/show.asp?id=2109
>
> URLScan would possibly do this. Check the logfiles and see what's
> happening. Create a mime type for the .MAP extension.
>
> Jeff
>



msdn_user

2005-07-05, 5:57 pm

I think I may have found my answer in the following KB article: 251219, which
states that - The ".map" extension is reserved and intended for association
with server-side image maps in Internet Information Server (IIS) and Internet
Information Services (IIS). The size of these image maps is restricted to 128
KB. IIS enforces this size limit on all files that have a file name extension
of .map before it loads the files.

The suggested workaround is to use files smaller then 128KB, rename files or
upgrade to IIS 6.0.

Thanks everyone that responded to my question.

msdn_user


"David Wang [Msft]" wrote:

> Sounds like something else on your server is blocking .map extension from
> downloading. My test .map resources are downloading just fine on IIS5.
>
> Do you have an application mapping for .map defined for that URL namespace
> and do you have at least "Scripts" execute permissions enabled?
>
> Do you have any other ISAPI (Filter or Extension) that could be rejecting
> ..map requests for their own arbitrary reasons?
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no rights.
> //
> "msdn_user" <msdnuser@discussions.microsoft.com> wrote in message
> news:CA60776F-D3B1-48D2-9425-CC32D49F61AB@microsoft.com...
> The log files showed the following message,
>
> #Software: Microsoft Internet Information Services 5.0
> #Version: 1.0
> #Date: 2005-07-01 17:43:24
> #Fields: date time c-ip cs-username s-sitename s-computername s-ip s-port
> cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes
> cs-bytes time-taken cs-version cs-host cs(User-Agent)
> 2005-07-01 17:43:24 129.xxx.xxx.xx - W3SVC1 MYSERVER 129.xxx.xxx.xx 80 GET
> /my.map - 500 50 0 81 16 HTTP/1.1 MYSERVER MyApp/1.0
>
> when I looked up the code returned for sc-win32-status - the error message
> was 'The request is not supported'.
>
> Not sure why the server would not support the request.
> --
> msdn_user
>
>
> "Jeff Cochran" wrote:
>
> certain
> write
> with
> file
> issue
> but
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com