T
T
Top_Pudge2017-06-13 15:28:01
Microsoft Azure
Top_Pudge, 2017-06-13 15:28:01

The server does not see the json file, although it exists and everything worked on the local server. What could be causing such a problem?

uploaded all files via ftp from the site to microsoft azure hosting. In Ajax scripts, a static Json file is requested, but the server writes that the file was not found. Changed the file extension to txt easy finds. I returned 404 to json again. Reloading the site did not help. Although on the local server everything worked without problems.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Tallmange, 2017-06-13
@Top_Pudge

The root directory of the site should contain a Web.config file with the following content:

<?xml version="1.0"?>

<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".json" mimeType="application/json" />
     </staticContent>
    </system.webServer>
</configuration>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question