最近在玩 Windows8,在写一个 Metro app 时,家里的 PC 调试起来很正常,但到了公司就偶尔没法运行,debug 时报错信息为「SCRIPT7002: XMLHttpRequest: Network Error 0x2efd, Could not complete the operation due to error 00002efd.」
Stackoverflow 没有此问题的答案,自己折腾了一下 manifest,发现仅仅是打开 Internet 这一项是不够的,还需要把 Private Networks 打开才行。估计是公司网络的架构和家里不一样导致。