Click here to Skip to main content
16,017,857 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear Frnds,

I have error in crystal report coding not instance of an object(DateWiseIP missing directive or assembly reference)

please help me..
C#
if (TextBox1.Text == "")
        {
            DataTable dt = new DataTable();
            SqlConnection con = new SqlConnection();
            con.ConnectionString = "Data Source=PALANIVEL;Initial Catalog=HMS;User ID=sa;Password=login";
            con.Open();
            SqlDataAdapter ad = new SqlDataAdapter();
         
            DateWiseIP t2 = new DateWiseIP();
 

            ad = new SqlDataAdapter("select * from  Vw_InPatient where Reg_Date between '"+TextBox1.Text+"' and '"+TextBox2.Text+"'", con);
            ad.Fill(dt);
            t2.SetDataSource(dt);
            CrystalReportViewer1.ReportSource = t2;
            CrystalReportViewer1.RefreshReport();
        } 

in this code DateWiseIP is crystal report name.
Posted
Updated 17-Feb-14 17:55pm
v2
Comments
Krunal Rohit 17-Feb-14 23:56pm    
Try to clean the solution and rebuild it :)
-KR
vignesh war 18-Feb-14 0:07am    
i rebuilted its k.. but when i deploy it again same error will come can't deploy s/w.
abdul subhan mohammed 18-Feb-14 12:58pm    
what is DATEWISEIP???
Baxter P 19-Feb-14 20:10pm    
Sounds like the DLL which contains the DateWiseIP class in it is missing from the deployment machine, or it can't be found once deployed.

If you are using click once, you can specify the DLL which contains the DateWiseIP class in it as one of the required assemblies. It will then be sent along with the other assemblies, and be copied into the same folder.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900