.Net add json file with 404.3 error

1)

 

2)

(1) Open the server IIS manager and find the MIME type.
Add MIME type add:

File extension MIME type 
.svg image / svg + xml 
.woff application / x-font-woff 
.woff2 application / x-font-woff 
.json application / json 
(2) But: json file to continue
Open "Processor Mapping", click "Add Script Mapping", request path to write "* .json" [don't quotes], the 
executable file is "C: \ Windows \ System32 \ inetsrv \ asp.dll" [Locate through the browse window This file],
write "JSON" in the name, and then open the request limit-predicate-one of the following predicates, fill in "GET, POST" [don't quotes], after two confirmations, a prompt will pop up, click "Yes",
and restart Computer
3) Then add in the web.config file
 <system.webServer>
    <staticContent>
      <mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
    </staticContent>
  </system.webServer>

 

Guess you like

Origin www.cnblogs.com/yuanmo/p/12674428.html