title: Windows Azure caching cshtml files?
body: <p>I'm evaluating Windows Azure for an MVC application I'm working on.  I ported the app a little while ago and uploading without any issues.  I've come back about 4 weeks later to upload the next version and now I'm getting an exception being thrown.  </p>
  
  <p>Source: System.Web.WebPages
  Message: Section not defined: "main".
  Stack trace: at System.Web.WebPages.WebPageBase.RenderSection(String name, Boolean required) at ASP._Page_Views_Shared__Layout_cshtml.Execute() in e:\sitesroot\0\Views\Shared_Layout.cshtml:line 77 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) at System.Web.WebPages.WebPageBase.PopContext() at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;>c_<em>DisplayClass25.b</em>_22(IAsyncResult asyncResult) at System.Web.Mvc.Controller.&lt;>c_<em>DisplayClass1d.b</em>_18(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.&lt;>c_<em>DisplayClass4.b</em>_3(IAsyncResult ar) at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.&lt;>c_<em>DisplayClass4.b</em>_3(IAsyncResult ar) at System.Web.Mvc.MvcHandler.&lt;>c_<em>DisplayClass6.&lt;>c</em>_DisplayClassb.b_<em>4(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.&lt;>c</em>_DisplayClass4.b__3(IAsyncResult ar) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)</p>
  
  <p>The only reason that I can think that this would happening is that either the _layout.cshtml file is not updating or the Home/Index.cshtml file is not updating.  The MVC application works correctly both running in the Windows Azure emulator or running stand alone in IIS.</p>
  
  <p>I have completely deleted the role and redeployed as well as upgraded.  I have not configured CDN or the Azure Cache and I can confirm files that have been added to the project since the last successful deployment are available.</p>
  
  <p>Right now I'm out of ideas...</p>
  
  <p>EDIT:</p>
  
  <p>I've narrowed the issue down to a call to Html.RenderAction in the sub layout.  I'm wondering if this is an issue of it being an MVC 4 project that I'm testing.  I have loaded the latest System.Web.Mvc dll as part of my project but whether there's an issue on the Azure servers???</p>