Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Reporting > Telerik Reporting > Silverlight ReportViewer throws Async_ExceptionOccurred

Not answered Silverlight ReportViewer throws Async_ExceptionOccurred

Feed from this thread
  • Adolfo Marinucci avatar

    Posted on Mar 19, 2011 (permalink)

    Hi,

    I'm in trouble with the ReportViewer under Silverlight. Under development machine everything works fine but when deploy the project to production server (IIS7) silverlight report viewer doesn't display the report but shows a Async_ExceptionOccurred exception.
    I've read all the other threads about this problems and I've checked that:

    As referenced by server project following assemblies are present under the bin directory:
    Telerik.Reporting.dll (also installed in GAC as a try) - 5.0.11.316
    Telerik.Reporting.Service.dll (also installed in GAC as a try) - 5.0.11.316
    Telerik.Reporting.XamlRendering.dll (also installed in GAC as a try) - 5.0.11.316

    Of course SL project references:
    Telerik.ReportViewer.Silverlight - 5.0.11.316

    First I have tried without luck with the multisite bindings enabled (.NET 4 feature) as it works perfectly with the dev environment:
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
    then I've tried to explicetely define telerik services and bindings (as stated in documentation):

     

      <system.serviceModel>
        <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>
        <behaviors>
          <serviceBehaviors>
            <behavior name="">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
            <behavior name="ReportServiceBehavior">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
          </serviceBehaviors>
          <endpointBehaviors>
            <behavior name="WebBehavior">
              <webHttp />
            </behavior>
          </endpointBehaviors>
        </behaviors>
      </system.serviceModel>
    Unfortunately none of the above solution worked in my case.
    Report works fine in my dev environment, is developed in SL4, under VS 2010.
    The event viewer of the server doesn't report any error.
    Looking at the WCF tracing (using tracing viewer) I see that telerik service is correctly open and the closed.
    Also navigating to the service uri ("...\ReportService.sc") it correctly shows the service signatures.

    I've create a great telerik report, my clients are ansious to see the final effect :)

    Do you have any ideas on what could be wrong?

    Adolfo Marinucci



    Reply

  • Adolfo Marinucci avatar

    Posted on Mar 19, 2011 (permalink)

    Solved! The problem was with the 'Publish' feature of VS2010: it didn't update the xap so ReportService uri remained that I use in dev environment.
    One hint for who he usually use publish command in VS: build first the SL project then publish.

    Thanks,
    Adolfo

    Reply

  • Kevin avatar

    Posted on Mar 9, 2012 (permalink)

    Could you explain how you did this?

    Reply

  • Wang avatar

    Posted on May 10, 2012 (permalink)

    Hi  Adolfo,
         At this moment,I have encountered this ' Async_ExceptionOccurred exception '  be thrown from Silverlight ReportViewer.

         This situation I have encountered has matched more likely with your descriptions.but the only different is that  the Telerik Reporting Version is 5.0.11.510 , and I can not find the 'Telerik.Reporting.XamlRendering.dll' from the telerik installed 'bin' folder.

         Is this 'XamlRendering.dll' necessary ? 

         Could you explain how to solve this situation ? 

         I am in urgent for your help . Thanks a lot.
       
        
        

    Reply

  • Steve Steve avatar

    Posted on May 10, 2012 (permalink)

    Hi Wang,

    Since Q1 2011 SP1 the XAML rendering is contained in the Telerik.Reporting.dll assembly, so there is no longer a Telerik.Reporting.XamlRendering.dll. All references to the old assemblies have been removed from the documentation, so please always check the online documentation which is up to date with the latest official version and do not look in old forum threads for deployment information (Deploying Applications using Telerik Reporting).

    About the exception - this is a generic WCF service exception meaning that there is something wrong with its configuration. In Adolfo's case, this was invalid uri for the ReportService, but it could be any other part like incorrect deployment or missing endpoints in web.config.

    Regards,
    Steve
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

    Reply

  • Wang avatar

    Posted on May 10, 2012 (permalink)

    Hi Steve,
        Thanks for your quick reply.I greatly appreciate your help.
        
        About the telerik deployment,

        I have copied these required assemblies to the 'bin' folder of the web application from the telerik installed bin folder.  
        The following list is these required assemblies :
               Telerik.Reporting.dll -- 5.0.11.510 
               Telerik.Reporting.OpenXmlRendering.dll -- 5.0.11.510
               Telerik.Reporting.Service.dll --5.0.11.510
               Telerik.Reporting.Adomd.dll --5.0.11.510    
               DocumentFormat.OpenXml.dll --5.0.11.510        

        About WCF Service configuration, 
      
        Please see the following serviceModel section in web.config :
       
    <system.serviceModel>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
        <services>
          <service name="Telerik.Reporting.Service.ReportService" behaviorConfiguration="ReportServiceBehavior">
            <endpoint address=""
                      binding="basicHttpBinding" bindingConfiguration="BasicHttpBindingConfig"
                      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>
      
        <behaviors>
          <serviceBehaviors>
            <behavior name="ReportServiceBehavior">
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="false"/>
            </behavior>
          </serviceBehaviors>
          <endpointBehaviors>
            <behavior name="WebBehavior">
              <webHttp/>
            </behavior>
          </endpointBehaviors>
        </behaviors>
      
        <bindings>
          <basicHttpBinding>
            <binding name="BasicHttpBindingConfig"
                     maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" maxBufferPoolSize="2147483647"
                     receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00"/>
          </basicHttpBinding>
        </bindings>
      </system.serviceModel>

    I have referred these help articles :
    http://www.telerik.com/help/reporting/installation-deploying-on-silverlight-application.html
    http://www.telerik.com/help/reporting/installation-deploying-on-web-application.html

    About this description 'You still need to include required assemblies based on the project you host the Silverlight application' ;
    Which DLLs does the required assemblies include ?

     
    Following this situation,but the Silverlight ReportViewer has still thrown that 'Async_ExceptionOccurred ' exception.
    Why is it ? Is there anything else that I miss ?

    I am looking forward to your help...
    Thanks very much. 


    Reply

  • Steve Steve avatar

    Posted on May 15, 2012 (permalink)

    Hi Wang,

    The assemblies you have deployed are correct, the note in the deployments article for Silverlight refers to Telerik.Reporting.dll and other assemblies you might want (i.e. for the OpenXML and XPS formats).

    The WCF service binding are also correct according to the Hosting WCF Service in IIS help article.

    One thing that you have not mentioned is the version of RadControls for Silverlight assemblies, which are requires for the Silverlight viewer (see How to: Add report viewer to a Silverlight application). Make sure you use the assemblies from the Q1 2011 version as you're using Telerik Reporting Q1 2011. You can find them in C:\Program Files\Telerik\Reporting Q1 2011\Examples\CSharp\SilverlightDemo\bin so you do not have to manually download them.

    If you're still having problems, it would be best to zip and attach your project in a support ticket and we would advise you accordingly once we review it.

    Regards,
    Steve
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

    Reply

  • Yuan Yuan avatar

    Posted on May 16, 2012 (permalink)

    Hi Steve,
        Thanks for your clear guide.

        Following your suggestions , I have rechecked the version of RadControls for Silverlight assemblies, which are requires for the Silverlight viewer , referring this help article as below.
        http://www.telerik.com/help/reporting/silverlight-report-viewer-embedding_the_silverlight_viewer.html

        About these Silverlight assemblies :
        Telerik.ReportViewer.Silverlight.dll           --5.0.11.510
        Telerik.Windows.Controls.dll                    --2011.1.419.1040
        Telerik.Windows.Controls.Input.dll           --2011.1.419.1040
        Telerik.Windows.Controls.Navigation.dll  -- 2011.1.419.1040 

        Unfortunately , the Silverlight reportviewer have thrown 'Async_ExceptionOccurred' exception . 
        I am very puzzled , Why is it ?   

        In addition , My project have been deployed on 64-bit windows 2008 server ; I think this exception maybe result from the OS version.
        How to solve it ?

        I am in urgent need of your help...
        Thanks very much. 

        please see the attached illustration.


         

       
    Attached files

    Reply

  • Steve Steve avatar

    Posted on May 18, 2012 (permalink)

    Hello Yuan,

    The "Async_Exception" has nothing to do with the Operating System itself. We appreciate that you've sent your project in the ticket and we ran it successfully on our end (see video in ticket).

    As mentioned in your previous posts, the exception thrown in the viewer is a generic one and it might be due to various reasons.

    In order to get more information about the actual problem try the following:

    • show the Output window in Visual Studio and check whether there is an exception when you're running your application in debug mode.
    • access the .svc file directly in your browser to see if it reports any problems.
    • enable the CLR exceptions from Debug --> Exceptions menu in Visual Studio and run your project in debug
    • do you have WCF services configured on your Win 2008 Server? Please review the following articles:
    If the problem persists, our suggestion is to use Fiddler proxy to see what is the response from the server in order to pinpoint the exact problem.

    Also please use only one of the threads to continue the discussion to avoid any miscommunication.

    Regards,
    Steve
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Reporting > Telerik Reporting > Silverlight ReportViewer throws Async_ExceptionOccurred
Related resources for "Silverlight ReportViewer throws Async_ExceptionOccurred"

Features  |  Documentation  |  Demos  |  Telerik TV  |  Knowledge Base  |  Code Library  |  Step-by-step Tutorial  |  Blogs  |  Whitepaper  ]