Hi,
iv'e been trying to implement html5 application cache.
i have a webrole web application project written in mvc3 & C#.
the manifest file is being created on the fly , by a controller and a view.
the controller:
public ActionResult Manifest()
{
Response.Cache.SetCacheability
(System.Web.HttpCacheability.NoCache);
return View();
}
the view:
@{
Response.ContentType = "text/cache-manifest";
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Layout = null;
}
CACHE MANIFEST
# 2/4/2012:V2
NETWORK:
#Views
@Url.Action("Index","Group")
@Url.Action("OfflineIndex","Group")
CACHE:
#JS FILES
@Url.Content("~/Scripts/jquery-1.6.4.min.js")
@Url.Content("~/Scripts/jquery-ui.1.8.16.min.js")
@Url.Content("~/Scripts/jquery.mobile-1.0b3.min.js")
@Url.Content("~/Scripts/jquery.validate.min.js")
@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")
@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")
#CSS FILES
@Url.Content("~/Content/Rtl.css")
@Url.Content("~/Content/JQM/jquery.mobile-1.0b3.css")
@Url.Content("~/Content/JQM/jquery-ui.css")
@Url.Content("~/Content/Site.css?v=2")"
FALLBACK:
@Url.Action("Offline","Group")
on my local machine , the whole thing works very well , but when i publish to my DEV environment on azure , i'm getting an http 500 error on the manifest file.
any suggestions?
thanks,
Nir
Nir Weiner