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

Error when opening a report in dotnetnuke which has a UI parameter visible

5 Answers 151 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andraz
Top achievements
Rank 1
Andraz asked on 15 May 2008, 09:43 AM
I have installed a Trial version of Telerik Reporting Q1 2008 on my computer.
I created a page and placed a Telerik report viewer control.
All of the samples are working normaly except:
  • Product Catalog Report
  • Product Line Sales Report
which have a UI report parameter visible.
The program says:
A critical error has occurred.
Object reference not set to an instance of an object.

Then I created my own Report, added a parameter. It works fine until I set its UI property Visible = True.

Why is this happening?
Can you help me solve this problem?

Thank you very much and best regards.

5 Answers, 1 is accepted

Sort by
0
Milen | Product Manager @DX
Telerik team
answered on 16 May 2008, 11:50 AM
Hello Andraz,

Thank you for your interest in our Reporting tool.

The information you have provided is insufficient for us to reproduce and isolate the problem. Is it possible for you to send us the call stack trace returned when the error occurs. Also please share what web browser and what version you are using and any other information you think might be useful.

Thank you in advance for your cooperation.

Best wishes,
Milen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andraz
Top achievements
Rank 1
answered on 16 May 2008, 03:04 PM
Hi,

I am using Internet Explorer 7.0.5730.11 and
DotNetNuke version is 4.8.

this is the StackTrace of the error:

AbsoluteURLReferrer: http://localhost/Shire/Organizer/ReportsTesting/tabid/7042/language/en-US/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: accecb75-f663-4772-9851-0f2a64a6b5f0
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Telerik.ReportViewer.WebForms.SR.get_ReportParametersShowAreaText
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Telerik.ReportViewer.WebForms.SR.get_ReportParametersShowAreaText() at Telerik.ReportViewer.WebForms.ShowHideParametersGroup.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

The ReportViewer page HTML looks like this:

<%

@ Control Language="C#" AutoEventWireup="true" Inherits="DotNetNuke.Modules.OIC.Shire.Reporting.TelericRepViewer" %>
<%
@ Register Assembly="Telerik.ReportViewer.WebForms, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
<link href="mvwres:6-Telerik.ReportViewer.WebForms.Skins.Default.ReportViewer.css,Telerik.ReportViewer.WebForms, Version=2.5.8.414, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" rel="stylesheet" type="text/css" />
<
asp:UpdatePanel ID="upnRegMailListList" runat="server">
<ContentTemplate>
<table style="width: 100%" id="Table1" cellspacing="0" cellpadding="0" border="0"> <tbody
    <tr
        <td
            
Reports viewer
        </td
    </tr
    <tr
        <td
            <telerik:reportviewer id="ReportViewer1" runat="server" Height="600px"Width="100%"></telerik:reportviewer
        </td
    </tr
</tbody>
</table>
</ContentTemplate>
</
asp:UpdatePanel>

This ReportViewer gets a report name from URL like in the samples.

I am sorry if put too much code in this post. I hope you are not angry too much.

If you need more inforamtion, I will be glad to share it with you.

Thank you very much and best regards.

0
Accepted
Milen | Product Manager @DX
Telerik team
answered on 20 May 2008, 11:02 AM
Hello Andraz,

Thank you for your patience and for the provided information.

Examining the stack trace I suppose that the thrown exception is connected with the localization of the report viewer.

If you are trying to localize the report viewer, please download and use the latest version of the .resx files from the KB article Localizing the Telerik Report Viewer. We apologize that till now, the most recent version was not uploaded there.

Let us know if that solves the issue you've encountered.

Best wishes,
Milen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andraz
Top achievements
Rank 1
answered on 20 May 2008, 01:00 PM
Yes, that was it.

I downloaded the new version of the resource file like you said and now I can also use report parameters visually in Dotnetnuke.

But now I sill have one problem left. These newly added keys in the resource files are not being applied in the report webview control. But I will open a new support ticket for this. 

Thank you very much and best regards.

0
Chavdar
Telerik team
answered on 21 May 2008, 01:51 PM
Hi Andraz,

You can use the Global Application Class (global.asax) and set the CurrentUICulture of the thread in the BeginRequest event of the application. For example:


public class Global : System.Web.HttpApplication 
    { 
 
        public Global() 
        { 
            this.BeginRequest += new EventHandler(Global_BeginRequest); 
        } 
 
        void Global_BeginRequest(object sender, EventArgs e) 
        { 
            System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("Fr"); 
        } 
 
        protected void Application_Start(object sender, EventArgs e) 
        { 
 
        } 
 
        protected void Application_End(object sender, EventArgs e) 
        { 
 
        } 
    } 


Hope this helps.


Greetings,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Andraz
Top achievements
Rank 1
Answers by
Milen | Product Manager @DX
Telerik team
Andraz
Top achievements
Rank 1
Chavdar
Telerik team
Share this question
or