IIS does not serve .dat files

I have an ASP MVC web application that uses a plugin to load images and points for a 3D application.

When debugging with the Visual Studio development server, the images and dots work fine ...

http://i148.photobucket.com/albums/s19/littleniv/Debugging/local.png

Second image: same url, but iis.png

When working in IIS 7, although .Dat point files do not serve and do not create 404.

I noticed that caching is marked as private in the violinist, but I don't know what that means. Can anyone help?

Greetings

Stu

+3
source share
3 answers

- , IIS 6. IIS , mime.

IIS, , " MIME" IIS. "..." ( ) (".dat" ) mime ( , "application/octet-stream" ?).

enter image description here

, .

+11

OK. -, 404.3 50 ERROR_NOT_SUPPORTED. - ?

!!!

, . , . , , ! !!

. SO... !

0

For an Azure web application, the following changes to web.config did the trick, thanks for the tip like Mime:

<system.webServer>
  <staticContent>
    <remove fileExtension=".dat" />
    <mimeMap fileExtension=".dat" mimeType="application/octet-stream" />
  </staticContent>
</system.webServer>
0
source

Source: https://habr.com/ru/post/1742315/


All Articles