stimulsoft mvc html,asp.net mvc – stimulsoft report mvc kill session – Stack Overflow

stimulsoft mvc html,asp.net mvc – stimulsoft report mvc kill session – Stack OverflowIusestimulssoftreportmvcforgeneratingareportinanasp.netwebsite.Thereportgeneratesfinein”local”butwhenthesiteisuploadedtoaserverandareportisgeneratedtheuser’ssessionh…

大家好,又见面了,我是你们的朋友全栈君。

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:

@using Stimulsoft.Report.Mvc;

@{Layout = null;}

plan report

@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions()

{

Theme = StiTheme.Office2013,

ActionGetReportSnapshot = “ShowPlanReport”,

ActionViewerEvent = “ViewerEvent”,

ActionExportReport = “ExportReport”,

ActionPrintReport = “PrintReport”,

ClientRequestTimeout = 90000,

ServerRelativeUrls = true,

})

and this is ShowPlanReport action in administrator Controller.

public virtual ActionResult ShowPlanReport()

{

List FinalResult = new

List();

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=>x.PlanID == temp.ID).Count() > 0)

{

model.Topograph = db.PlanTopograpger.FirstOrDefault(x => x.PlanID == temp.ID).Topographer.Name;

model.Topograph += ” “;

model.Topograph = db.PlanTopograpger.FirstOrDefault(x => x.PlanID == temp.ID).Topographer.Family;

}

else

{

model.Topograph = “”;

}

if(db.PlanDesignerAdvisor.Where(x => x.PlanID == temp.ID).Count() > 0)

{

model.Design = db.PlanDesignerAdvisor.FirstOrDefault(x => x.PlanID == temp.ID).Advisor.Name;

model.Design += ” “;

model.Design += db.PlanDesignerAdvisor.FirstOrDefault(x => x.PlanID == temp.ID).Advisor.Family;

}

else if (db.PlanDesignerCompany.Where(x => x.PlanID == temp.ID).Count() > 0)

{

model.Design = db.PlanDesignerCompany.FirstOrDefault(x => x.PlanID == temp.ID).Company.Name;

}

else

{

model.Design = “”;

}

if(db.PlanChecker.Where(x => x.PlanID == temp.ID).Count() > 0)

{

model.Checker = db.PlanChecker.FirstOrDefault(x => x.PlanID == temp.ID).Company.Name;

}

else

{

model.Checker = “”;

}

if(db.PlanExecute.Where(x => x.PlanID == temp.ID).Count() > 0)

{

model.Executer = db.PlanExecute.FirstOrDefault(x => x.PlanID == temp.ID).Company.Name;

}

else if (db.PlanExeHistory.Where(x => x.PlanID == temp.ID).Count() > 0)

{

model.Executer = db.PlanExeHistory.FirstOrDefault(x => x.PlanID == temp.ID).Company.Name;

}

else

{

model.Executer = “”;

}

if(db.PlanValidate.Where(x => x.PlanID == temp.ID && x.Validate == true && x.PlanExecute == true).Count() > 0)

{

model.ValidDate = ToJalali(db.PlanValidate.FirstOrDefault(x => x.PlanID == temp.ID && x.Validate == true && 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);

}

There is no log, no exception and I can’t find out the source of problem. Please help.

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/159861.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Matlab基本函数 length函数

    Matlab基本函数 length函数分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!               1、length函数:

    2022年6月9日
    69
  • ssm框架过时了吗_Spring Boot

    ssm框架过时了吗_Spring BootSpringSpring是一个开源的免费的框架Spring是一个轻量级的,非入侵式的框架控制反转(IOC),面向切面编程(AOP)支持事务的处理,对框架整合的支持IOC理论UserDaoUserDaoImpUserSeviceUserServiceImp在之前,用户的需求可能会影响原来的代码。使用一个set。public void setUserDao(UserDao userDao){ this.userDao = userDao;}之前是主动创建对象,控制

    2022年8月8日
    7
  • MaxCompute Studio使用心得系列3——可视化分析作业运行

    MaxCompute Studio使用心得系列3——可视化分析作业运行

    2022年3月8日
    62
  • 第一章:什么是数据化运营「建议收藏」

    第一章:什么是数据化运营「建议收藏」1.1现代营销理论的发展历程1.1.1从4P到4C(商品丰富、市场竞争日益激烈、消费者成为商业世界核心)4P(以产品为中心的营销)理论Product(产品):注重产品功能,强调独特卖点Pric

    2022年8月4日
    5
  • 90后的我们越长大越孤单

    90后的我们越长大越孤单

    2021年8月9日
    51
  • ubuntu 局域网传输文件

    ubuntu 局域网传输文件scp[可选参数]file_sourcefile_target参数说明:-1:强制scp命令使用协议ssh1 -2:强制scp命令使用协议ssh2 -4:强制scp命令只使用IPv4寻址 -6:强制scp命令只使用IPv6寻址 -B:使用批处理模式(传输过程中不询问传输口令或短语) -C:允许压缩。(将-C标志传递给ssh,从而打开压缩功能) -p:保留原文件的修改时间,访问时间和访问权限。 -q:不显示传输进度条。 -r:递归复制整个目录。 -v:详细方.

    2022年5月24日
    39

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号