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(Ev entArgs 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
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 !