No valid report source is availablehttp://forums.asp.net/t/1488379.aspx/1?No+valid+report+source+is+availableWed, 30 Nov 2011 09:35:48 -050014883793491178http://forums.asp.net/p/1488379/3491178.aspx/1?No+valid+report+source+is+availableNo valid report source is available <p>Hello There;</p> <p><br> </p> <p>I am trying to view my report files on &nbsp;CrystalReport viewer in ASP.NET&nbsp;programmatically. by using the code blow;</p> <p><br> </p> <pre class="prettyprint">CrystalReportSource reportsource = new CrystalReportSource(); CrystalDecisions.Web.Report report = new CrystalDecisions.Web.Report(); Guid reportid = new Guid(Request.QueryString[&quot;GUID&quot;]); string path = Server.MapPath(&quot;/Reports/&quot;) &#43; dc.Reports.Where(k =&gt; k.OID == reportid).First().FileContent; report.FileName = path; reportsource.Report = report; CrystalReportViewer1.ReportSource = reportsource;</pre> <pre class="prettyprint"> <pre class="prettyprint"> <pre class="prettyprint"> <pre class="prettyprint"> <pre class="prettyprint"> <pre class="prettyprint"> <pre class="prettyprint">regards.</pre></pre></pre></pre></pre></pre></pre> 2009-11-03T09:31:33-05:004707304http://forums.asp.net/p/1488379/4707304.aspx/1?Re+No+valid+report+source+is+availableRe: No valid report source is available <p>I think you need to rebind report again.</p> <p>Write your code in page_load event and try.</p> <p></p> <p>protected void Page_Load(object sender, EventArgs e)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // attached our report to viewer and set database login.<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReportDocument report = new ReportDocument();<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; report.Load(Server.MapPath(&quot;CrystalReport1.rpt&quot;));<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //report.SetDatabaseLogon(&quot;username&quot;, &quot;pwd&quot;, @&quot;server&quot;, &quot;database&quot;);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rptviewer.ReportSource = report;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p> 2011-11-29T23:20:29-05:004707964http://forums.asp.net/p/1488379/4707964.aspx/1?Re+No+valid+report+source+is+availableRe: No valid report source is available <p>Refer the following link .</p> <p>Check the Report name and check is it getting connection properties.</p> <p><a href="http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/7345fc6c-9749-42a3-b866-509c57f3cc35/">http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/7345fc6c-9749-42a3-b866-509c57f3cc35/</a></p> 2011-11-30T08:11:03-05:004708169http://forums.asp.net/p/1488379/4708169.aspx/1?Re+No+valid+report+source+is+availableRe: No valid report source is available <p>hi there,<br> <br> In addition to the previous response, there are several requirements to run Crystal Report:</p> &lt;div&gt; <p><br> 1. Please make sure the CR version installed on the server matches the one you use on your application/website<br> 2. Please make sure that the assemblies of the CR installed on the server are referenced correctly on your web.config<br> 3. Please make sure you set the application pool of your application to operate under LOCAL SERVICE permission<br> 4. Please make sure FULL TRUST mode is enabled on your operating folder<br> 5. Please make sure crystalreportviewer and aspnet_client folders are copied to your operating folder.<br> <br> Should you still have problems, you can consider hosting it with&nbsp;<a href="http://www.asphostcentral.com/">asphostcentral.com</a>.<br> <br> Please mark this response as an &quot;<em>answer</em>&quot; if it helps you. Thanks heaps</p> &lt;/div&gt; 2011-11-30T09:35:48-05:00