错误 404.3 未找到 JSON 文件 [英] ERROR 404.3 Not Found for JSON file

查看:27
本文介绍了错误 404.3 未找到 JSON 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使在我激活了所有应用程序开发功能"之后,我还是收到了找不到 404.3 错误"的 JSON 文件,我在Internet 信息服务 7.5"上使用 AJAX 调用调用了该文件.除了 JSON 文件,所有其他文件都被加载.

I have been getting the "ERROR 404.3 Not Found" for JSON file that I am calling using AJAX call on "Internet Information Services 7.5" even after I have activated all the "Application Development Features". Other than JSON file, all other files are getting loaded.

我在本地机器上的 IIS 服务器上运行 HTML 页面.

I am running an HTML page on IIS server on my local machine.

如果我直接打开文件,则完全没有问题.当我将文件托管在在线服务器上时,它工作正常.

If I open the file directly then there is no problem at all. When I host the files on an online server it works fine.

任何快速帮助将不胜感激.

Any quick help will be much appreciated.

推荐答案

您尝试接收的文件是否在同一个域中?或者你从另一台服务器获取json?如果它托管在不同的域上,由于同源策略,您将不得不使用 JSONP.

Is the file you try to receive in the same domain? Or do you fetch the json from another server? If it is hosted on a different domain, you'll have to use JSONP due to same origin policy.

这篇关于错误 404.3 未找到 JSON 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆