bobj undefined + ASP .NET MVC 3 + crystalreportviewers13
I am developping a web application by using the ASP .NET MVC 3 framework.
I am using :
- Visual Studio SP1.
- Windows XP Professional.
- My IIS 5.1 local.
I have installed :
- SAP Crystal Reports 2011.
- SAP Crystal Reports for Visual Studio 2010 by running CRforVS_13_0_1.exe.
I have got the two following virtual directories under my default web site on IIS :
- The virtual directory corresponding to my VS2010 project.
- aspnet_client which is the ancestor of the crystalreportviewers13 folder. The latter contains the ressources needed by a CrystalReportViewer control such as CSS and JS files.
I want to generate an HTML5 page containing a Crystal Report viewer.
I have implemented an action method in a controller.
I fill a DataTable in my action method and then I use it as a source for a ReportDocument.
Then I pass the ReportDocument to a Razor view.
I call a ViewUserControl in my Razor view and I pass the ReportDocument to the ViewUserControl.
The code of my ViewUserControl is contained in a ".ascx" file.
My ViewUserControl contains a CrystalReportViewer control.
I use the ReportDocument as a source for the CrystalReportViewer control in the Page_Init event method.
But the reference to the following CSS file is present and works :
Does someone can help me ?
I precise that I have searched for a solution for two days and I have tried some fixes without success.