简体   繁体   English

有 CR:CrystalReportViewer 时 C# 断点不会命中

[英]C# Breakpoint does not hit when there is CR:CrystalReportViewer

My web app needs to generate reports from database.我的网络应用程序需要从数据库生成报告。 I used Crystal Reports, but including it my page disables the debug (in which I cannot hit the breakpoint)我使用了 Crystal Reports,但包含它我的页面禁用了调试(我无法在其中找到断点)

While redirecting to a new page(that holds my crystalreport) works as a workaround.重定向到新页面(包含我的 Crystalreport)时,可以作为一种解决方法。

I still want to know why this happens, and make it work.我仍然想知道为什么会发生这种情况,并让它发挥作用。

Things I've tried:我尝试过的事情:

  • Reinstall crystal report重新安装水晶报表
  • Enabled Optimize Code from Build Project Properties从构建项目属性启用优化代码

This is the CrystalReportViewer from my aspx.page这是我的 aspx.page 中的 CrystalReportViewer

<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true"/>

Running in:运行:

  • Visual Studio 2015视觉工作室 2015
  • IIS 10 (Full Installion) IIS 10(完整安装)
  • Windows 10视窗 10

Additional Info:附加信息:

  • There are no errors, clicking a button with a breakpoint on the onclick event does not hit the breakpoint.没有错误,在 onclick 事件上单击带有断点的按钮不会命中断点。
  • If I delete the CrystalReportViewer, debugger hits the breakpoint如果我删除 CrystalReportViewer,调试器会遇到断点

尝试附加到 CR 过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM