I'm building a Firefox OS app, and on the following line of code:
var app = navigator.mozApps.install('mymanifest.webapp');
Firefox Console throws an error:
Error: NS_ERROR_FAILURE: INVALID_URL: '/mymanifest.webapp', Source File: resource://gre/components/Webapps.js, Line: 87
My MVC controller is this:
public ContentResult FirefoxOsManifest()
{
string json = GetManifestJson(); // a method that returns json string
return Content(json, "application/x-web-app-manifest+json");
}
I've added .webapp
mimetype to my IIS, restarted IIS, restarted the World Wide Web Publishing Service
, restarted my browser, validated the manifest, and still getting the error. What am I missing?