title: stimulsoft report mvc kill session
body: <p>I use stimulssoft report mvc for generating a report in an asp.net website.
  The report generates fine in "local" but when the site is uploaded to a server and a report is generated the user's session has been destroyed and the user is redirected to the login page. This is the report view:</p>
  
  <pre><code>@using Stimulsoft.Report.Mvc;
  @{Layout = null;} 
  &lt;html&gt; 
  &lt;head&gt;
      &lt;title&gt;plan report&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  @Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions()
  {
      Theme = StiTheme.Office2013,
      ActionGetReportSnapshot = "ShowPlanReport",
      ActionViewerEvent = "ViewerEvent",
      ActionExportReport = "ExportReport",
      ActionPrintReport = "PrintReport",
      ClientRequestTimeout = 90000,
      ServerRelativeUrls = true,
  })
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and this is ShowPlanReport action in administrator Controller.</p>
  
  <pre><code>public virtual ActionResult ShowPlanReport()
  {          
          List&lt;ReportPlanFullViewModel&gt; FinalResult = new 
          List&lt;ReportPlanFullViewModel&gt;();
          var db = new anjomanEntities();
          foreach(Plan temp in reportList)
          {
              ReportPlanFullViewModel model = new ReportPlanFullViewModel();
              model.PlanID = temp.ID;
              model.Farmer = temp.Farmer;
              model.NationalCode = temp.NationalCode;
              model.System = temp.WaterSystem.Name;
              model.RainArea = temp.RainArea;
              model.DropArea = temp.DropsArea;
              model.Mobile = temp.Mobile;
              model.Address = temp.Address;
              model.Village = temp.Village;
              if(db.PlanTopograpger.Where(x=&gt;x.PlanID == temp.ID).Count() &gt; 0)
              {
                  model.Topograph = db.PlanTopograpger.FirstOrDefault(x =&gt; x.PlanID == temp.ID).Topographer.Name;
                  model.Topograph += " ";
                  model.Topograph = db.PlanTopograpger.FirstOrDefault(x =&gt; x.PlanID == temp.ID).Topographer.Family;
              }
              else
              {
                  model.Topograph = "";
              }
              if(db.PlanDesignerAdvisor.Where(x =&gt; x.PlanID == temp.ID).Count() &gt; 0)
              {
                  model.Design = db.PlanDesignerAdvisor.FirstOrDefault(x =&gt; x.PlanID == temp.ID).Advisor.Name;
                  model.Design += " ";
                  model.Design += db.PlanDesignerAdvisor.FirstOrDefault(x =&gt; x.PlanID == temp.ID).Advisor.Family;
              }
              else if (db.PlanDesignerCompany.Where(x =&gt; x.PlanID == temp.ID).Count() &gt; 0)
              {
                  model.Design = db.PlanDesignerCompany.FirstOrDefault(x =&gt; x.PlanID == temp.ID).Company.Name;
              }
              else
              {
                  model.Design = "";
              }
              if(db.PlanChecker.Where(x =&gt; x.PlanID == temp.ID).Count() &gt; 0)
              {
                  model.Checker = db.PlanChecker.FirstOrDefault(x =&gt; x.PlanID == temp.ID).Company.Name;
              }
              else
              {
                  model.Checker = "";
              }
              if(db.PlanExecute.Where(x =&gt; x.PlanID == temp.ID).Count() &gt; 0)
              {
                  model.Executer = db.PlanExecute.FirstOrDefault(x =&gt; x.PlanID == temp.ID).Company.Name;
              }
              else if (db.PlanExeHistory.Where(x =&gt; x.PlanID == temp.ID).Count() &gt; 0)
              {
                  model.Executer = db.PlanExeHistory.FirstOrDefault(x =&gt; x.PlanID == temp.ID).Company.Name;
              }
              else
              {
                  model.Executer = "";
              }
              if(db.PlanValidate.Where(x =&gt; x.PlanID == temp.ID &amp;&amp; x.Validate == true &amp;&amp; x.PlanExecute == true).Count() &gt; 0)
              {
                  model.ValidDate = ToJalali(db.PlanValidate.FirstOrDefault(x =&gt; x.PlanID == temp.ID &amp;&amp; x.Validate == true &amp;&amp; x.PlanExecute == true).ValidDate);
              }
              else
              {
                  model.ValidDate = "";
              }
              FinalResult.Add(model);
          }
          var mainReport = new Stimulsoft.Report.StiReport();
          mainReport.Load(Server.MapPath("~/Report/PlanReport.mrt"));
          // 
          try
          {
              mainReport.Compile();
          }
          catch(Exception c)
          {
              ViewBag.Message = c.Message;
          }
          mainReport.RegBusinessObject("plan_business", FinalResult);
          return 
       Stimulsoft.Report.Mvc.StiMvcViewer.GetReportSnapshotResult(mainReport);
  }
  </code></pre>
  
  <p>There is no log, no exception and I can't find out the source of problem. Please help.</p>