In addition to the previous response, there are several requirements to run Crystal Report:
<div>
1. Please make sure the CR version installed on the server matches the one you use on your application/website
2. Please make sure that the assemblies of the CR installed on the server are referenced correctly on your web.config
3. Please make sure you set the application pool of your application to operate under LOCAL SERVICE permission
4. Please make sure FULL TRUST mode is enabled on your operating folder
5. Please make sure crystalreportviewer and aspnet_client folders are copied to your operating folder.
Should you still have problems, you can consider hosting it with asphostcentral.com.
Please mark this response as an "answer" if it helps you. Thanks heaps
mkosucu
0 Points
2 Posts
No valid report source is available
Nov 03, 2009 09:31 AM|LINK
Hello There;
I am trying to view my report files on CrystalReport viewer in ASP.NET programmatically. by using the code blow;
CrystalReportSource reportsource = new CrystalReportSource(); CrystalDecisions.Web.Report report = new CrystalDecisions.Web.Report(); Guid reportid = new Guid(Request.QueryString["GUID"]); string path = Server.MapPath("/Reports/") + dc.Reports.Where(k => k.OID == reportid).First().FileContent; report.FileName = path; reportsource.Report = report; CrystalReportViewer1.ReportSource = reportsource;No valid report source is available
dabhi_mayur
Member
163 Points
89 Posts
Re: No valid report source is available
Nov 29, 2011 11:20 PM|LINK
I think you need to rebind report again.
Write your code in page_load event and try.
protected void Page_Load(object sender, EventArgs e)
{
// attached our report to viewer and set database login.
ReportDocument report = new ReportDocument();
report.Load(Server.MapPath("CrystalReport1.rpt"));
//report.SetDatabaseLogon("username", "pwd", @"server", "database");
rptviewer.ReportSource = report;
}
No valid report source is available
Sagar Kamate
Participant
764 Points
162 Posts
Re: No valid report source is available
Nov 30, 2011 08:11 AM|LINK
Refer the following link .
Check the Report name and check is it getting connection properties.
http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/7345fc6c-9749-42a3-b866-509c57f3cc35/
No valid report source is available
Sagar Kamate, Software Engineer.
sagark_1008@yahoo.co.in
Don't forget to Mark this thread as "Answer", if it was useful to you.
necro_mancer
Star
8073 Points
1587 Posts
Re: No valid report source is available
Nov 30, 2011 09:35 AM|LINK
hi there,
<div>In addition to the previous response, there are several requirements to run Crystal Report:
</div>1. Please make sure the CR version installed on the server matches the one you use on your application/website
2. Please make sure that the assemblies of the CR installed on the server are referenced correctly on your web.config
3. Please make sure you set the application pool of your application to operate under LOCAL SERVICE permission
4. Please make sure FULL TRUST mode is enabled on your operating folder
5. Please make sure crystalreportviewer and aspnet_client folders are copied to your operating folder.
Should you still have problems, you can consider hosting it with asphostcentral.com.
Please mark this response as an "answer" if it helps you. Thanks heaps
Professional SQL 2008 R2 Service