Telerik Forums
Reporting Forum
1 answer
145 views
I am little confused as to how reporitng source works I just need to be able to bind this list to the the report and was wondering how I might do this.
List<QCObject> list = new List<QCObject>();
 list.Add(obj);
Todor
Telerik team
 answered on 03 Jul 2018
2 answers
240 views

Hi,

I'm trying to implement the Telerik reporting engine using Azure functions. When I provide an objectdatasource the ReportProcessor renders with an Exception

The assembly "MyAssembly" is not permitted to be used by an ObjectDataSource section of your application configuration file.

I assume thisis related to AssemblyReferences configuration specified here: https://docs.telerik.com/reporting/objectdatasource#configuration

Azure functions do not support web.config files. Is there any other option to set the AssemblyReferences?

Thanks
Matthias

Matthias
Top achievements
Rank 1
 answered on 03 Jul 2018
1 answer
226 views

Hi,

I am not sure that I have designed my report the most efficient way but that is another issue, I currently have a report that displays multiple different parameters from a database each displayed in their own table with their own sqldatasource.  This all works fine but like I say, I don't think this is the most efficient way.

 

My issue is, there is a requirement for one of the parameters to only be displayed depending on the value of another parameter in another table.  How would I go about doing this?

 

Any help/pointers in the right direction would be greatly appreciated.

 

Thanks

 

Kristin

Todor
Telerik team
 answered on 03 Jul 2018
1 answer
221 views

Hi Telerik team,

I know actually there is no native support for localization in standalone report (contrary to visual studio report).

I wondered if this feature will be implemented in a near future or if it is not planned for the moment.

Thanks a lot for your feedback.

Yannick

Silviya
Telerik team
 answered on 03 Jul 2018
2 answers
238 views

Hi Team,

We are getting the error message "Internal Server error. The Device is not ready"

Is there a solution/fix available to avoid the following error which occurs inconsistently."
"Internal Server error. The device is not ready! .

Kindly let us know when this issue will occur since we are not able to reproduce consistently

PFA error snapshot for the exact error details

Additional Details : Issue occurs only when we host the application in IIS, when we run locally we dont have any issues.

 

daniel daryl
Top achievements
Rank 1
 answered on 03 Jul 2018
4 answers
793 views
I have 5 groups in my report (say Group 1, Group 2, Group 3, Group 4, Group 5)
Group 1 - parent, Group 2 - child of Group 1, Group 3 - child of Group 2, Group 4 - child of Group 3 and Group 5 - child of Group 4

Group 4 and Group 5 are by default true but Group 1, 2 & 3 depends on the parameter (with multivalue/checkboxes - Group 1, 2 ,3)
i.e. user can choose combination of Group 1,2,3 or null

How can I set it up in the Telerik Report Designer?

Something like this--

Group1 - depends on parameter value
Group2 - depends on parameter value
Group3 - depends on parameter value
Group4 - always true
Group5 - always true
Data:- Name, Amount
Data:-Total by Group4  Sum(Amount)

It should always show the Data no matter what combination of parameters user choose or null.
venkateswararao
Top achievements
Rank 1
 answered on 30 Jun 2018
3 answers
1.5K+ views
Hello,

I am trying to use HTML5 Report Viewer with MVC extension helper.

I have an error "Unable to get report parameters: Missing report name". It is happening during POST request to /api/reports/clients/210953-ab00/parameters which gets 400 Bad Request. 

I guess because request data do not have report: parameterValues: {} report: null

I call HTML helper like that:

    @(Html.TelerikReporting().ReportViewer()
        .Id("reportViewer1").ReportResolver(new TypeReportSourceResolver())
        .ServiceUrl("/api/reports/")
        .TemplateUrl(Url.Content("~/ReportViewer/templates/telerikReportViewerTemplate.html"))
        .ReportSource(new InstanceReportSource(){ReportDocument = new SessionReport()})
        .ViewMode(ViewModes.INTERACTIVE)
        .ScaleMode(ScaleModes.SPECIFIC)
        .Scale(1.0)
        .PersistSession(false)
    )

I have my ReportController implemented like:

public class ReportsController : ReportsControllerBase
    {
        protected override IReportResolver CreateReportResolver()
        {
            var reportsPath = HttpContext.Current.Server.MapPath("~/Reports");

            return new ReportFileResolver(reportsPath)
                .AddFallbackResolver(new ReportTypeResolver());
        }

        protected override ICache CreateCache()
        {
            return Telerik.Reporting.Services.Engine.CacheFactory.CreateFileCache();
        }
    }

And as I am using MVC5 with WepApi2 I have in my web.config following (I am not sure about last entry for Newtonsoft.Json):

      <dependentAssembly>
        <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-5.1.0.0" newVersion="5.1.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-5.1.0.0" newVersion="5.1.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-4.5.0.0" newVersion="4.5.0.0" />
      </dependentAssembly>

Can you help, please? Regards, Yegor.
amaeze
Top achievements
Rank 1
 answered on 28 Jun 2018
1 answer
287 views

hello,

I'm using Telerik Reporting HTML Viewer (telerikReportViewer-8.1.14.618.min.js). 
In the server side I'm using Telerik.Reporting in c#.
All are work perfectly but once every few months all reports are stop working, 
I get some http errors in some telerik reporting automatic requests.


Sometimes I got the error for the following request:
POST http://web.otech.co.il/otech/api/reports/clients  
the response is:
System.ArgumentNullException Value cannot be null
at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)\r\n   
at Telerik.Reporting.Services.Engine.PersistableCollection`1.GetEnumerator()\r\n   
at Telerik.Reporting.Services.Engine.ReportEngine.CollectExpiredData()\r\n   
at Telerik.Reporting.Services.Engine.ReportEngine.RegisterClient()\r\n   
at Telerik.Reporting.Services.WebApi.ReportsControllerBase.RegisterClient()\r\n   
at lambda_method(Closure , Object , Object[] )\r\n   
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n   
at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}


Sometimes I got error 500 for the following request:
POST http://web.otech.co.il/otech/api/reports/clients/102530-76b8/instances 
the response is: 
System.ArgumentNullException Value cannot be null
 at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)\r\n  
 at Telerik.Reporting.Services.Engine.PersistableCollection`1.GetEnumerator()\r\n   
at Telerik.Reporting.Services.Engine.KeyItemPersistableCollection`2.ResolveItem(K referredInstanceKey, Boolean& newItem)\r\n  
 at Telerik.Reporting.Services.Engine.ReportEngine.CreateReportInstance(String clientID, String report, Dictionary`2 parameterValues)\r\n
   at Telerik.Reporting.Services.WebApi.ReportsControllerBase.CreateInstance(String clientID, ClientReportSource reportSource)\r\n   
at lambda_method(Closure , Object , Object[] )\r\n   
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n   
at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}


Sometimes I got the error for the following request:
POST http://web.otech.co.il/otech/api/reports/clients/103331-358d/parameters 
the response is:
Invalid report type
System.ArgumentException
 at Telerik.Reporting.Processing.TypeReportDocumentResolver.Resolve(IProcessingContext context, TypeReportSource rs)\r\n  
 at Telerik.Reporting.Processing.ReportDocumentResolver`1.Telerik.Reporting.Processing.IReportDocumentResolver.Resolve
(IProcessingContext context, ReportSource rs, Boolean loadParameters)\r\n   
at Telerik.Reporting.Processing.ReportDocumentResolver.Bind[T](ReportSource source, Func`2 func)\r\n   
at Telerik.Reporting.Services.Engine.DocumentResolver.ResolveReportDocument(ReportSource source, Boolean applyParameters)\r\n   
at Telerik.Reporting.Services.Engine.ReportEngine.GetParameters(String clientID, String report, Dictionary`2 parameterValues)\r\n   
at Telerik.Reporting.Services.WebApi.ReportsControllerBase.GetParameters(String clientID, ClientReportSource reportSource)\r\n   
at lambda_method(Closure , Object , Object[] )\r\n   
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n   
at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"} 

This error is occurred on known report that worked perfectly before.



I'm try restart the IIS, restart the computer ant etc. , nothing helped.
When I copy the entire site directory  and configure new site in IIS - It started work again.
Also, If I copy the entire site directory to another new directory and just configure the existing site to link to the new directory - also it started work..

Do you know what can be the reason of this problem? It's very worth for my customer to stop and recreate the site once every few months..

Thanks,

Chani





Nasko
Telerik team
 answered on 28 Jun 2018
1 answer
69 views
Hello,

I followed the steps in the Telerik reporting video found here: https://www.youtube.com/watch?v=UF1mL6vzJDs. I was able to get everything working on my development machine but when I put it up on the webserver, it just gets to the part where the page says "loading..." and stops.  No error, nothing.  Any suggestions on what I might be missing.  I am able to tell that it at least gets to this line in the index.html:  <script type="text/javascript">
        $(document).ready(function () {

Thanks,

 

Jennifer

Nasko
Telerik team
 answered on 28 Jun 2018
2 answers
171 views

Hello,

I'm trying to setup reports in my Angular application.  I've followed the guides and I'm stuck at creating the REST service. My setup:

 

Angular 6 application

.NET Core Web API

Telerik REST Project

 

When following this guide:

https://docs.telerik.com/reporting/telerik-reporting-rest-host-http-service-using-web-hosting

 

I get an error when using the project template.  It's

"The name 'AreaRegistration' does not exist in the current context"

 

Any ideas would be appreciated.

Nasko
Telerik team
 answered on 28 Jun 2018
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?