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

Problem to Render Report

2 Answers 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 19 Dec 2011, 11:23 AM
Hi there,

I follow this tutorial: http://tv.telerik.com/watch/reporting/video/getting-started-with-telerik-report-viewer-silverlight but I can´t display my report in ReportViewer: Give me that error, see in attache please.

To help you, here are my webConfig:

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <appSettings>
    <add key="PathReunioes" value="Reunioes" />
    <!--<add key="PathReunioes" value="\\192.168.10.20\usa_esta" />-->
    <add key="PathTemporarios" value="Temp" />
    <add key="PathUpload" value="Upload" />
    <add key="PathExtras" value="Extras" />
    <add key="gravacaoAnexosBD" value="N" />
    <add key="gravacaoDocumentosReuniaoBD" value="N" />
    <add key="logotipo1" value="/Extras/logotipo1.png" />
    <add key="logotipo1_X" value="100" />
    <add key="logotipo1_Y" value="100" />
    <add key="logotipo1_Largura" value="200" />
    <add key="logotipo1_Altura" value="100" />
    <add key="logotipo2" value="/Extras/logotipo2.png" />
    <add key="logotipo2_X" value="100" />
    <add key="logotipo2_Y" value="100" />
    <add key="logotipo2_Largura" value="200" />
    <add key="logotipo2_Altura" value="100" />
    <add key="numeroMaximoAnexosSessaoUpload" value="6" />
    <add key="numeroMaximoDocumentosReuniaoSessaoUpload" value="4" />
    <add key="id_TipoEntidade_Sistema" value="4" />
    <add key="numeroMaximoChamadas" value="3" />
    <add key="caminhoExecutavelOpenOffice" value="C:\Program Files (x86)\OpenOffice.org 3\program\soffice.exe" />
    <add key="timeoutOpenOffice" value="1000" />
    <add key="cache" value="N" />
  </appSettings>

  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </modules>
  </system.webServer>
  <system.web>
    <httpRuntime maxRequestLength="10000000" executionTimeout="3600" />
    <httpModules>
      <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </httpModules>
    <compilation debug="true" targetFramework="4.0" />
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
  </system.web>
  <connectionStrings>
    <add name="ConexaoBDSGA" connectionString="data source=bd01;password=sga_demo123;persist security info=True;user id=SGA_DEMO" providerName="Oracle.DataAccess.Client" />
  </connectionStrings>
  <system.serviceModel>
    
    
    
    <behaviors>
      <serviceBehaviors>
        <behavior name="ReportServiceBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="WebBehavior">
          <webHttp />
        </behavior>
      </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />

    <services>
      <service
              name="Telerik.Reporting.Service.ReportService"
              behaviorConfiguration="ReportServiceBehavior">
        <endpoint
               address=""
               binding="basicHttpBinding"
               contract="Telerik.Reporting.Service.IReportService">
          <identity>
            <dns value="localhost" />
          </identity>
        </endpoint>
        <endpoint
                address="resources"
                binding="webHttpBinding"
                behaviorConfiguration="WebBehavior"
                contract="Telerik.Reporting.Service.IResourceService"/>
        <endpoint
                address="mex"
                binding="mexHttpBinding"
                contract="IMetadataExchange" />
      </service>
    </services>

  </system.serviceModel>
</configuration>

My XAML:

<navigation:Page x:Class="SGA.Views.SGASeguranca"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:UC="clr-namespace:SGA.UserControls"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           xmlns:telerik="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"
           Title="SGA - Segurança" Unloaded="Page_Unloaded">
    <Grid x:Name="LayoutRoot">
        <telerik:ReportViewer  x:Name="ReportViewer1" Width="1000"
                              >
        </telerik:ReportViewer>
    </Grid>
</navigation:Page>

And my Code-Behind:

using System;
using System.Linq;
using System.Windows.Controls;
using System.Windows.Navigation;
using System.Windows;

namespace SGA.Views
{
    public partial class SGASeguranca : Page
    {
        public SGASeguranca()
        {
            InitializeComponent();

            try
            {
                ReportViewer1.Report = "Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=5.3.11.1116, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE";
                ReportViewer1.ReportServiceUri = new Uri("../ReportService.svc",UriKind.RelativeOrAbsolute);
            }
            catch(Exception e)
            {
            }

        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

        private void Page_Unloaded(object sender, RoutedEventArgs e)
        {
            this.DataContext = null;
            GC.Collect();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            
        }
    }    

}

Thanks in advance.


2 Answers, 1 is accepted

Sort by
0
Amdawi
Top achievements
Rank 1
answered on 27 Dec 2011, 05:05 PM
I have same problem.
How can we fix it ?
0
IvanY
Telerik team
answered on 28 Dec 2011, 02:09 PM
Hello Fahad,

Try to rebuild your entire solution and restart Visual Studio. If the problem persists it will be good to open a support ticket and send as a runnable sample in order to exhibit the problem at our end and provide you with more information.

Greetings,
IvanY
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Manuel
Top achievements
Rank 1
Answers by
Amdawi
Top achievements
Rank 1
IvanY
Telerik team
Share this question
or