简体   繁体   中英

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)

While redirecting to a new page(that holds my crystalreport) works as a workaround.

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

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

Running in:

  • Visual Studio 2015
  • IIS 10 (Full Installion)
  • Windows 10

Additional Info:

  • There are no errors, clicking a button with a breakpoint on the onclick event does not hit the breakpoint.
  • If I delete the CrystalReportViewer, debugger hits the breakpoint

尝试附加到 CR 过程。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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