Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > inetserver iis > june 2005 >

inetserver iis : IIS 5.0 http file transfer



msdn_user
6/30/2005 9:33:02 AM
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?
--
jeff.nospam NO[at]SPAM zina.com
7/1/2005 12:00:00 AM
On Thu, 30 Jun 2005 09:33:02 -0700, msdn_user
[quoted text, click to view]

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.

msdn_user
7/1/2005 9:33:03 AM
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


[quoted text, click to view]
msdn_user
7/1/2005 11:34:02 AM
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


[quoted text, click to view]
jeff.nospam NO[at]SPAM zina.com
7/2/2005 12:00:00 AM
On Fri, 1 Jul 2005 09:33:03 -0700, msdn_user
[quoted text, click to view]
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.

David Wang [Msft]
7/3/2005 5:06:03 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.
//
[quoted text, click to view]
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


[quoted text, click to view]

msdn_user
7/5/2005 10:59:01 AM
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


[quoted text, click to view]
AddThis Social Bookmark Button