Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
localhost - /image/

[To Parent Directory]

5/4/2016 2:05 PM 263156 192.168.1.2.dcm
2/19/2016 10:52 PM 17072128 Confidence.exe
5/4/2016 2:12 PM 4750532 IM-0001-0001.dcm
5/4/2016 2:05 PM 1055640 IM-0001-0002.dcm
5/4/2016 2:06 PM 1055640 IM-0001-0003.dcm
2/18/2016 5:00 PM 16703488 Image.exe
2/18/2016 5:00 PM 24563996 Image.ilk
2/18/2016 5:00 PM 32943104 Image.pdb
2/19/2016 11:56 PM 16700416 RGBImage.exe
2/19/2016 11:57 PM 24564208 RGBImage.ilk
2/19/2016 11:57 PM 32934912 RGBImage.pdb


I want to acces dicom file(.dcm), when I was click the file. I saw this message:
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
but when I was click image.exe. I did it.

What I have tried:

anything but I did't please help me
Posted
Updated 4-May-16 9:27am
v2
Comments
Matt T Heffron 4-May-16 14:57pm    
Use "Improve question" above, clarify what you are trying to do, and show us the relevant code for what you've tried.
We don't even have the context for what you are doing! There's no way we can help without more information!
Sergey Alexandrovich Kryukov 4-May-16 15:32pm    
A valid address cannot get such form. Do you mean 192.168.1.2/dcm, or something like that?

—SA

1 solution

For security reasons, IIS will only serve files with extensions that are configured in the MIME mappings. The extension ".dcm" is not currently configured on your server, so you need to configure it.

Adding Static Content MIME Mappings <mimeMap> : The Official Microsoft IIS Site[^]

You should set the content type to be: Application/DICOM
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 4-May-16 15:33pm    
Also pay attention that it cannot be valid URI, without any '/'.
—SA
Richard Deeming 4-May-16 15:40pm    
I'm guessing that it's part of the file name, not an IP address. The text in the question looks like the list you get when you enable directory browsing in IIS.
Sergey Alexandrovich Kryukov 4-May-16 15:43pm    
Of course not, but the URI syntax is invalid, no matter what it meant to be. This is more fundamental bug/misconception than the use of unhandled "extension". Say, this word could be a folder name, and index file in the corresponding directory would do the trick...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900