【发布时间】:2013-07-25 23:08:05
【问题描述】:
我正在构建一个 Firefox OS 应用,并在以下代码行:
var app = navigator.mozApps.install('mymanifest.webapp');
Firefox 控制台抛出错误:
Error: NS_ERROR_FAILURE: INVALID_URL: '/mymanifest.webapp', Source File: resource://gre/components/Webapps.js, Line: 87
我的 MVC 控制器是这样的:
public ContentResult FirefoxOsManifest()
{
string json = GetManifestJson(); // a method that returns json string
return Content(json, "application/x-web-app-manifest+json");
}
我已将.webapp mimetype 添加到我的 IIS,重新启动 IIS,重新启动 World Wide Web Publishing Service,重新启动浏览器,验证清单,但仍然出现错误。我错过了什么?
【问题讨论】:
标签: web-applications mime-types firefox-os