Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Crystal Problem : Object reference not set to an instance of an object.

 

The problem is with crystal report web page.

 

The said crystal report web page is working fine upon my development machine but not upon production server.

 

I am using vb.net as code-behind with crystal report bundled.

 

For Example, the following small Crystal report web page is not working upon :->

 

Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.Shared

Public Class test

Inherits System.Web.UI.Page

 

Protected WithEvents lblMesg As System.Web.UI.WebControls.Label

Protected WithEvents CrystalReportViewer1 As CrystalDecisions.Web.CrystalReportViewer

 

#Region " Web Form Designer Generated Code "

 

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

 

End Sub

 

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init

'CODEGEN: This method call is required by the Web Form Designer

'Do not modify it using the code editor.

InitializeComponent()

End Sub

 

#End Region

 

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here

If Not IsPostBack Then

lblMesg.Visible = True

lblMesg.Text = "Hello"

End If

End Sub

End Class

 

The Error Message is as below :->

 

========================================== Start

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

 

Source Error:

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

 

Stack Trace:

 

 

[NullReferenceException: Object reference not set to an instance of an object.]

CrystalDecisions.Web.�.get_�G() +189

CrystalDecisions.Web.CrystalReportViewer.OnInit(EventArgs e) +352

System.Web.UI.Control.InitRecursive(Control namingContainer) +241

System.Web.UI.Control.InitRecursive(Control namingContainer) +179

System.Web.UI.Control.InitRecursive(Control namingContainer) +179

System.Web.UI.Page.ProcessRequestMain() +174

 

 

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.1.4322.510; ASP.NET Version:1.1.4322.510

==============================================

 

 

You could even self try by using the following url

 

http://www.bitelindia.com/bargainqry.aspx

 

From date : 01/04/2003 and To date : 02/04/2003 and Pressing Proceed button.

 

No Crystal web page of mine is working upon, the given above page is just for an example.

 

The problem seems to me with crystal components.

 

I have hosted all the reqd. crystal dll into bin directory.

 

All other web page w/o crystal are working fine.

 

Kindly Help !

Edited by bitelindia
Posted (edited)

Although, it is in process to confirm, whether crystal being supported or not upon host from web server administrator.

 

But I have a point, earlier, I was being encountered an error as "can not find keycodev2...error" that has been fixed by me

it indicates that at host there would be crystal reports supported.

 

kindly suggest

 

please help

Edited by bitelindia
  • 2 weeks later...
Posted

Can you supply the email or url, the companies who are supporting web cyrstal reports.

 

Is it there is any way to run setup.exe from our side at web server?

 

Our Web host company supports ms visual.net framework and not ms visual studio.net

 

Kindly help

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...