html5 application cache on a windows azure web role
-
Montag, 16. April 2012 07:27
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
Alle Antworten
-
Dienstag, 17. April 2012 01:54Moderator
Hi,
I am not 100% sure understand your problem, what do you mean by "publish to my DEV environment on azure"? And you've mentioned that the application is works in local machine, please make sure all MVC reference assembly's Copy to Local property has been set to "True".
Hope this helps.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
- Als Antwort markiert Arwind - MSFTModerator Montag, 23. April 2012 06:11

