title: Render rdlc reports to PDF not working on azure websites
body: <p>I am having the following issue with my rdlc reports. I am creating an asp.net MVC application and need to use reports. All my reports work fine on my local machine, but on azure website I get the always this error:</p>
  
  <pre><code>Error.
  An error occurred while processing your request.
  </code></pre>
  
  <p>On my azure bin folder I have the following dll's</p>
  
  <pre><code>Microsoft.ReportViewer.Common
  Microsoft.ReportViewer.DataVisualization
  Microsoft.ReportViewer.ProcessingObjectModel
  Microsoft.ReportViewer.WebForms
  Microsoft.ReportViewer.WinForms
  </code></pre>
  
  <p>and have a folder Reports with all my reports in it. </p>
  
  <p>I also have change my reports properties Build Action to content and still nothing. Does any one know how can I resolve this issue.</p>
  
  <p>The code that I am using and works fine on my localhost</p>
  
  <pre><code>        LocalReport lr = new LocalReport();
          string path = System.IO.Path.Combine(Server.MapPath("~/Reports"), "Model1.rdlc");
          if (System.IO.File.Exists(path))
          {
              lr.ReportPath = path;
          }
          else
          {
              return View();
          }
  
          ReportDataSource rd = new ReportDataSource("Model1");
          lr.DataSources.Add(rd);
          string reportType = id;
          string mimeType;
          string encoding;
          string fileNameExtension;
  
          string deviceInfo =
  
          "&lt;DeviceInfo&gt;" +
          "  &lt;OutputFormat&gt;" + id + "&lt;/OutputFormat&gt;" +
          "  &lt;PageWidth&gt;8.5in&lt;/PageWidth&gt;" +
          "  &lt;PageHeight&gt;11in&lt;/PageHeight&gt;" +
          "  &lt;MarginTop&gt;0.2in&lt;/MarginTop&gt;" +
          "  &lt;MarginLeft&gt;0.1in&lt;/MarginLeft&gt;" +
          "  &lt;MarginRight&gt;0.1in&lt;/MarginRight&gt;" +
          "  &lt;MarginBottom&gt;0.3in&lt;/MarginBottom&gt;" +
           " &lt;orientation&gt;Landscape&lt;/orientation&gt;" +
  
          "&lt;/DeviceInfo&gt;";
  
          Warning[] warnings;
          string[] streams;
          byte[] renderedBytes;
  
          renderedBytes = lr.Render(
              reportType,
              deviceInfo,
              out mimeType,
              out encoding,
              out fileNameExtension,
              out streams,
              out warnings);
  
          return File(renderedBytes, mimeType); 
  </code></pre>