This is a migrated thread and some comments may be shown as answers.

Newbie question: Telerik Report in MVC 3

2 Answers 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jianping
Top achievements
Rank 1
Jianping asked on 26 Mar 2012, 08:10 AM
This is my first time to try out Telerik Report.

I created a Telerik MVC 3 Web Application project in VS 2010. Dropped Telerik Report control onto the About page content area. added the http handler to the web.config file. When I hit the about page, I got this error.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Is this supposed to work?

thanks,

content area code:

<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>About</h2>
    <p>
        Put content here.
<telerik:ReportViewer ID="ReportViewer1" runat="server">
</telerik:ReportViewer>
   </p>
</asp:Content>

2 Answers, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 27 Mar 2012, 03:42 PM
Hi Jianping,

You can check Using Telerik Web ReportViewer in ASP.NET MVC application entry in our Code Library. Additionally you can find attached a working sample, which you can start using right away.

We hope that this helps. 

All the best,
IvanY
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
0
Vassil Petev
Telerik team
answered on 26 Mar 2013, 04:03 PM
Hi all,

We have produced a new blog + video on how to use Telerik Reporting in MVC 4. Check it out.

FYI, we will be working on a new web viewer for Q2 2013 which will work with MVC without the extra steps.

Enjoy.


Regards,
Vassil Petev
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

Tags
General Discussions
Asked by
Jianping
Top achievements
Rank 1
Answers by
IvanY
Telerik team
Vassil Petev
Telerik team
Share this question
or