We help IT Professionals succeed at work.

Crystal Reports using ASP.Net 2.0, IE 6, The request could not be submitted for background processing.

1,147 Views
Last Modified: 2013-11-26
I am working on a web site using ASP.Net 2.0. The IDE is VS.Net 2005. The appilcation contains reports which are developed in crystal reports version 9.1.5000.0. Now when I run the reports through web site, it generates an error:
Error in File C:\Documents and Settings\Administrator\Local Settings\Temp\temp_13600be5-8b63-429b-8cbb-b5260481feb2.rpt:
The request could not be submitted for background processing.
The Dataset Table is assigned to the datasource of crystal reports. Can anybody know whats the exact reason of this issue ? The code is given below:
Thanks
public class ctrlAsBuiltTallyReport : System.Web.UI.UserControl
	
		{
 
		     
			string QSPrjId;
			string QSSectionId;
 
			protected CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1;
			PipeTracking_GI.Crystal.CRSAsBuilt oRpt = new PipeTracking_GI.Crystal.CRSAsBuilt();
           		protected System.Web.UI.WebControls.ImageButton Imagebutton3;
			protected System.Web.UI.WebControls.ImageButton ImageButton1;
			protected System.Web.UI.WebControls.ImageButton ImageButton2; 
 
		
			SessionDetails Session_Properties=new SessionDetails();
 
			private void Page_Load(object sender, System.EventArgs e)
			{
				DataSet ds = new DataSet(); 
				QSPrjId = Request.QueryString["PrjId"];
				QSSectionId = Request.QueryString["SectionId"];
 
				Projects proj;
				proj=Projects.getProjectByProjId_BLL(Convert.ToInt32(QSPrjId));
				CargoBarge _Cargo;
				_Cargo=CargoBarge.getCargoBargeByProjId_BLL(Convert.ToInt32(QSPrjId));
				Section _Section=null;
				_Section=Section.getSectionBySectionId_BLL(Convert.ToInt32(QSSectionId));
 
				ds = InstalledPipes.Get_DSAsBuilt_BLL(Convert.ToInt32(QSPrjId),Convert.ToInt32(QSSectionId));
                
                oRpt.SetParameterValue("Report Header", "As Built Tally Report");
                oRpt.SetParameterValue("Client", proj.ProjClient);
                oRpt.SetParameterValue("Project Name", proj.ProjName);
                oRpt.SetParameterValue("Project description", proj.ProjDesc);
                oRpt.SetParameterValue("Project number", proj.ProjNumber);
                oRpt.SetParameterValue("Section", _Section.SectionNo);
                oRpt.SetParameterValue("Location", proj.ProjLocation);
                oRpt.SetParameterValue("Contractor", "Global Industries");
                oRpt.SetParameterValue("Barge ID", _Cargo.LayBarge);
                DataColumn dc = new DataColumn("Name");
                ds.Tables[0].Columns.Add(dc);
 
                
 
				oRpt.SetDataSource(ds.Tables[0]);
				CrystalReportViewer1.ReportSource=oRpt; 
				CrystalReportViewer1.Visible = true; 
 
 
			}
}

Open in new window

Comment
Watch Question

Senior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.