Hello,
I'm new to Telerik Reporting, heck I'm still using a trial... but I'm getting this error while trying to put a Report Viewer onto an aspx page within an already built web application as a trial run.....
It is an ASP.NET 2.0 web page that has a master page....
I did build the report in a separate class library, and it works fine (connecting to a MySQL database and retrieving a simple set of data).
this is the code for the aspx page..... I've added no code to the aspx.cs ..... as it is not needed to view a report (I've done a trial run on a new web site earlier as another test, but now i'm trying to incorporate a report into a system)
===========================================================================================================
<%@ Page Language="C#" MasterPageFile="~/ApplicationLayout.master" AutoEventWireup="true" CodeFile="TestReporting.aspx.cs" Inherits="TelerikTest_TestReporting" Title="Telerik Test" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=4.0.10.423, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<telerik:ReportViewer ID="ReportViewer1" runat="server">
</telerik:ReportViewer>
</div>
</asp:Content>
======================================================================================================
At the moment.... I'm not connecting it to any report, as I just need to know if the viewer will display.... but it does not, I just get that error.
Oh, and I have searched this forum earlier for anything related to this error..... If I take the runat="server" away from the report viewer, the viewer does not show up on the page at all, but I don't see that error message come up.....
what do I do to get the viewer to display..... after I have it working can I attach a report to it..... please help
Amit Missra
I'm new to Telerik Reporting, heck I'm still using a trial... but I'm getting this error while trying to put a Report Viewer onto an aspx page within an already built web application as a trial run.....
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)
It is an ASP.NET 2.0 web page that has a master page....
I did build the report in a separate class library, and it works fine (connecting to a MySQL database and retrieving a simple set of data).
this is the code for the aspx page..... I've added no code to the aspx.cs ..... as it is not needed to view a report (I've done a trial run on a new web site earlier as another test, but now i'm trying to incorporate a report into a system)
===========================================================================================================
<%@ Page Language="C#" MasterPageFile="~/ApplicationLayout.master" AutoEventWireup="true" CodeFile="TestReporting.aspx.cs" Inherits="TelerikTest_TestReporting" Title="Telerik Test" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=4.0.10.423, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<telerik:ReportViewer ID="ReportViewer1" runat="server">
</telerik:ReportViewer>
</div>
</asp:Content>
======================================================================================================
At the moment.... I'm not connecting it to any report, as I just need to know if the viewer will display.... but it does not, I just get that error.
Oh, and I have searched this forum earlier for anything related to this error..... If I take the runat="server" away from the report viewer, the viewer does not show up on the page at all, but I don't see that error message come up.....
what do I do to get the viewer to display..... after I have it working can I attach a report to it..... please help
Amit Missra