title: Azure application working on emulator but not on azure cloud
body: <p>I am developing my MVC3 application on visual web developer 2010 express,
  by migrating my MVC3 (cshtml) files on MVC2.</p>
  
  <p>It works great on local system using the emulator, but once I deploy the application on azure it gives runtime errors.</p>
  
  <p>Example:</p>
  
  <pre><code>The layout page "~/Views/Shared/test_page.cshtml" could not be found at the following path: "~/Views/Shared/test_page.cshtml". 
  
  Source Error: 
  
  
  Line 8:          //Layout = "~/Views/Shared/upload.cshtml";
  Line 9:          //Layout = "~/Views/Shared/_Layout2.cshtml";
  Line 10:         Layout = "~/Views/Shared/test_page.cshtml";
  Line 11:     }
  Line 12:     else
  </code></pre>
  
  <h2>CODE IS AS FOLLOWS:</h2>
  
  <pre><code>_ViewStart.cshtml file
  
  @{
  
      string AccId = Request.QueryString["AccId"].ToString();
  
  
      if (AccId=="0")
      {
          //Layout = "~/Views/Shared/upload.cshtml";
          //Layout = "~/Views/Shared/_Layout2.cshtml";
          Layout = "~/Views/Shared/test_page.cshtml";
      }
      else
      {
          string LayOutPagePath = MVCTest.Models.ComponentClass.GetLayOutPagePath(AccId);
          Layout = LayOutPagePath; 
      }
  
  
  
  }
  </code></pre>
  
  <p>.........</p>
  
  <p>however the page exists, and is working fine on azure emulator, but not in azure cloud.</p>
  
  <h2>CODE FOR test_page.cshtml</h2>
  
  <pre><code>@{
  
      var result = "1234567890";
      var temp_xml = MVCTest.Models.ComponentClass.GetTemplateAndTheme("1");//returning xml
      string LayOutPagePath = MVCTest.Models.ComponentClass.GetLayOutPagePath("1");//returning string
  
   }
  
   @RenderBody()
   &lt;h1&gt;test_page&lt;/h1&gt;
   &lt;h4&gt;@temp_xml&lt;/h4&gt;
   &lt;h4&gt;@result&lt;/h4&gt;
   &lt;h4&gt;@LayOutPagePath&lt;/h4&gt;
  </code></pre>