title: Page load on localhost but not in Azure website - Erro 500
body: <p>I made a deploy of a asp.net mvc 4 application to Windows Azure,when I test the application in localhost is everything running ok , but in azure website, have a view that return the error 500 and I don't know why it's happens, could you try to help me here?</p>
  
  <p>This is the view:</p>
  
  <pre><code>@model IEnumerable&lt;TestTcc2.Models.Musica&gt;
  
  @{
      ViewBag.Title = "Index";
      Layout = "~/Views/Shared/_LayoutMusico.cshtml";
  }
  
  &lt;script src="Content/audiojs/audio.min.js"&gt;&lt;/script&gt;
  &lt;div class="row"&gt;
  &lt;div class="col-md-4"&gt;&lt;/div&gt;
  &lt;div id="divAudio" class="col-md-4"&gt;
  
      &lt;audio id="audioPlay" src="x" preload="auto" onplay="true" /&gt;
      &lt;script&gt;
          audiojs.events.ready(function () {
              var as = audiojs.createAll({
                  autoplay: true,
                  autoload: "none"
              });
  
          });
  
          function replaceAll(str, de, para) {
              var pos = str.indexOf(de);
              while (pos &gt; -1) {
                  str = str.replace(de, para);
                  pos = str.indexOf(de);
              }
              return (str);
          }
  
          function getUrlParameter(sParam) {
              var sPageURL = window.location.search.substring(1);
              var sURLVariables = sPageURL.split('&amp;');
              for (var i = 0; i &lt; sURLVariables.length; i++) {
                  var sParameterName = sURLVariables[i].split('=');
                  if (sParameterName[0] == sParam) {
                      var rep = replaceAll(sParameterName[1], "%2F", "/");
                      rep = replaceAll(rep, "%20", " ");
                      return rep;
                  }
              }
          }
          var x = getUrlParameter('path');
          $('#audioPlay').attr('src', x);
      &lt;/script&gt;
  &lt;/div&gt;
  &lt;div class="col-md-4"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;p&gt;
      @Html.ActionLink("Create New", "Create")
  &lt;/p&gt;
  
  &lt;table class="table table-hover table-bordered"&gt;
      &lt;tr&gt;
          &lt;th&gt;
              &lt;span&gt;Genero&lt;/span&gt;
          &lt;/th&gt;
  
          &lt;th&gt;
              &lt;span&gt;Nome&lt;/span&gt;
          &lt;/th&gt;
          &lt;th&gt;
              &lt;span&gt;Artista&lt;/span&gt;
          &lt;/th&gt;
          &lt;th&gt;
              &lt;span&gt;Preço&lt;/span&gt;
          &lt;/th&gt;
          &lt;th&gt;&lt;/th&gt;
      &lt;/tr&gt;
  
  @foreach (var item in Model) {
      if (item.UserId == Int32.Parse(Membership.GetUser().ProviderUserKey.ToString()))
      {
      &lt;tr&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.genero.Nome)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.Nome)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.NomeArtista)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.Preco)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.ActionLink("Play", "", new { path = item.path }) |
              @Html.ActionLink("Edit", "Edit", new { id=item.MusicaId }) |
              @Html.ActionLink("Download", "Download", new { path = item.path }) |
              @Html.ActionLink("Delete", "Delete", new { id=item.MusicaId })
          &lt;/td&gt;
      &lt;/tr&gt;
  }
  }
  
  &lt;/table&gt;
  </code></pre>
  
  <p>Here is the controller method that calls the view:</p>
  
  <pre><code>public ActionResult Index()
  {
          var musicas = db.Musicas.Include(m =&gt; m.genero);
          var _arquivos = modelMusica.listaMusica();
          return View(musicas.ToList());
  }
  </code></pre>
  
  <p>I tried to made a debug, but any error is displayed in localhost and in the azure, the following message is displayed:</p>
  
  <blockquote>
    <p>Error.An error occurred while processing your request.</p>
  </blockquote>
  
  <p>In my web.config I set the CustomErrors to off and debug to false, too.</p>
  
  <p>UPDATE ----</p>
  
  <p>Hey guys, I take the DetailedError from Azure:</p>
  
  <pre><code>Detailed Error Information:
  Module    ManagedPipelineHandler 
  Notification    ExecuteRequestHandler 
  Handler    System.Web.Mvc.MvcHandler 
  Error Code    0x00000000 
  Requested URL    http://independentmusicstore:80/Music 
  Physical Path    D:\home\site\wwwroot\Music 
  Logon Method    Forms 
  Logon User    pedro 
  </code></pre>