Problem trying to Debug Web form with CRViewer 
Author Message
 Problem trying to Debug Web form with CRViewer

Hello,

I've tried putting the CRViewer on to a web form using the exact process
described in the Help and I cannot get by this problem when I try to Debug.
 "Object reference not set to an instance of an object".  Here's what the
stack shows:
  [NullReferenceException: Object reference not set to an instance of an
object.]
   CrystalDecisions.Web. .get_ 7()
   CrystalDecisions.Web.CrystalReportViewer.OnInit(EventArgs e)
   System.Web.UI.Control.InitRecursive(Control namingContainer)
   System.Web.UI.Control.InitRecursive(Control namingContainer)
   System.Web.UI.Control.InitRecursive(Control namingContainer)
   System.Web.UI.Page.ProcessRequestMain()

The viewer displays the report just fine in Design mode so the data binding
seems to be working..  What am I neglecting to do?  Thanks for any ideas.
Laura.



Sun, 24 Jul 2005 05:12:22 GMT  
 Problem trying to Debug Web form with CRViewer
Well here's what I've discovered...  I couldn't put a CRViewer into an
existing project.  However, if I created a new project, put the viewer on
its web form then data bind it, it works.  Then you can add this project to
the solution project you're working on.   Weird.


Quote:
> Hello,

> I've tried putting the CRViewer on to a web form using the exact process
> described in the Help and I cannot get by this problem when I try to
Debug.
>  "Object reference not set to an instance of an object".  Here's what the
> stack shows:
>   [NullReferenceException: Object reference not set to an instance of an
> object.]
>    CrystalDecisions.Web. .get_ 7()
>    CrystalDecisions.Web.CrystalReportViewer.OnInit(EventArgs e)
>    System.Web.UI.Control.InitRecursive(Control namingContainer)
>    System.Web.UI.Control.InitRecursive(Control namingContainer)
>    System.Web.UI.Control.InitRecursive(Control namingContainer)
>    System.Web.UI.Page.ProcessRequestMain()

> The viewer displays the report just fine in Design mode so the data
binding
> seems to be working..  What am I neglecting to do?  Thanks for any ideas.
> Laura.



Mon, 25 Jul 2005 03:33:40 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Trying to use CRViewer on a Web Form

2. CRViewer problems on Web Site.

3. Trying to Build a Query using a String - Problem was Debug not showing all off value

4. Debugging Windows Controls on a Web Form

5. "crviewer" Error trying to register

6. Invalid URL error when trying to open web form in design view

7. CRViewer in form stays too small (do not use the hole form size)

8. Regsvr32 w/80020009 on CRViewer/web components

9. CRViewer on the web...

10. problem closing form when trying to export graph as gif

11. Error while trying to run project : Unable to start Debugging (beta 2)

12. Still trying to debug this code to use For Next to Write to file

 

 
Powered by phpBB® Forum Software