Score:0

After adding .7z mimetype to IIS server .jpg stopped to show up on the site with 500

ci flag

I've added .7z mime type with text/plain to my IIS server on Windows Server 2019. After that site's web.config was added the block (I didn't do that)

<staticContent>
    <mimeMap fileExtension=".7z" mimeType="application/octet-stream" />
</staticContent>

And the most interesting that after that site is loading all text and css but not the images giving 500 error on them.

  1. Why this block was added to my web.config?
  2. Why on earth it stopped to show only images?

*was tested in Firefox cache disabled

vidarlo avatar
ar flag
Question 3: Why do you want `text/plain` for a binary format? Question 4: What does your logs show?
Krackout avatar
it flag
Adding to vidarlo's comment, application/octet-stream is way too broad. Any binary file is octet-stream eventually, apparently images like jpg, png, etc are included also. application/x-7z-compressed it the mime type for 7z files, at least that's what I get on my computer.
Lex Li avatar
vn flag
I think something else causes the 500 errors, which you can trace out with FRT https://learn.microsoft.com/en-us/iis/troubleshoot/using-failed-request-tracing/troubleshoot-with-failed-request-tracing
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.