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

ReportViewer - Conditional compilation is turned off

7 Answers 110 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ed Navickas
Top achievements
Rank 1
Ed Navickas asked on 26 Apr 2010, 10:13 PM

Hi,

I hope someone can point me in the right direction.  I have upgraded to Telerik Reports 4.0.10.310, and I've noticed that the reports are working great with stored procedures with parameters in the report library assembly.  However, when I try to update the report viewer with the new report, I am getting a page error at the website, with a "Conditional compilation is turned off" error.  My development environment is VS 2010, Telerik Reports 4.0.10.310, using ASP.NET with VB.NET.  The code is below.

        <telerik:ReportViewer ID="ReportViewer1" runat="server"   
            Report="Reports.WeekDetail, Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"   
            Width="7.5in" Height="450px">  
        </telerik:ReportViewer> 
 
VB.NET:
    Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As ObjectByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged  
        ReportViewer1.Report.ReportParameters(0).Value = DropDownList1.SelectedValue  
    End Sub 
 

In the last version, changing the report parameters updated the report without any additional code.

Thanks,
Ed

7 Answers, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 2
answered on 28 Apr 2010, 06:43 PM
Does anyone have some thoughts on this? The error is generated on page load before the report is even generated.

Thanks,
Joe
0
Steve
Telerik team
answered on 29 Apr 2010, 02:44 PM
Hi Joe,

This code should not be working in the version you have specified. Please use the following code instead:

Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged 
       Dim report As Telerik.Reporting.Report = Me.ReportViewer1.Report
       report.ReportParameters[0].Value = DropDownList1.SelectedValue      
  End Sub

Still this should not be related to the error in your thread's subject, which sounds like a javascript error. Do you have any javascript on your page and if so can you comment it to see if the error is gone? If still having problems, please attach a sample project in a support ticket and we would advise you accordingly.

All the best,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Joe
Top achievements
Rank 2
answered on 29 Apr 2010, 03:18 PM
Here's the javascript error message....

Webpage error details  
 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.4; chromeframe; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30729; InfoPath.2; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)  
Timestamp: Wed, 28 Apr 2010 17:19:25 UTC  
 
 
Message: Conditional compilation is turned off  
Line: 26  
Char: 48  
Code: 0  
URI: http://reports.screeneronline.com/Telerik.ReportViewer.axd?instanceID=58635775bcf94a02bde2882b9005619a&culture=en-US&uiculture=en-US&optype=Parameters 
 
 
Message: Conditional compilation is turned off  
Line: 30  
Char: 34  
Code: 0  
URI: http://reports.screeneronline.com/Telerik.ReportViewer.axd?instanceID=58635775bcf94a02bde2882b9005619a&culture=en-US&uiculture=en-US&optype=Parameters 
 
 
Message: Conditional compilation is turned off  
Line: 171  
Char: 13  
Code: 0  
URI: http://reports.screeneronline.com/Telerik.ReportViewer.axd?optype=Resource&version=4.0.10.310&name=Resources.Parameters.js  
 

Note: I haven't tried your fix yet, just wanted to post the error message.

Thanks,
Joe
0
Joe
Top achievements
Rank 2
answered on 30 Apr 2010, 02:56 PM
Here's the result after further investigation:

-          There is no additional JavaScript on the page; whatever JS is causing the problem is generated.

-          When I remove the report viewer, the problem goes away

-          Everything appears to be configured as in old reports

-          I am not aware of any new configuration needed, and have researched a bit


Any other suggestions?

Thanks,
Joe
0
Steve
Telerik team
answered on 04 May 2010, 11:40 PM
Hello Joe,

As we are unable to reproduce the problem on our end, we would appreciate if you provide as much info as possible about your machine, project setup and exact scenario. Generally the fastest way to get to the bottom of a problem is if we have a runnable sample that shows the issue.

Kind regards,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Joe
Top achievements
Rank 2
answered on 05 May 2010, 02:35 PM
I will open a support ticket and provide the details you requested.

Thanks
0
Accepted
Joe
Top achievements
Rank 2
answered on 05 May 2010, 08:40 PM

We upgraded the reports to 4.0.10.423 and that solved the issue.

The Telerik RadControls remained at 2010.1.309.40
Tags
General Discussions
Asked by
Ed Navickas
Top achievements
Rank 1
Answers by
Joe
Top achievements
Rank 2
Steve
Telerik team
Share this question
or