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
10 Answers, 1 is accepted
One hint for who he usually use publish command in VS: build first the SL project then publish.
Thanks,
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.
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 >
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.
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 >
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.
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:
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 >
When we changed to an AppPool with a Managed Pipeline Mode of "Classic" (instead of "Integrated"), we were able to see the reports without error. It was the AppPool of the Virtual Directory that contained the ReportViewer. IIS --> WebSite --> Virtual Directory/App --> Right-click --> Advanced Settings --> Choose new AppPool with "Classic" Managed Pipeline Mode.
I don't know if this is empirically sound advice, but it helped us for some reason.
Your issue might be caused by misconfiguration in your web.config. Notice that Classic and Integrated modes read their settings from different sections(<system.web> and <system.webServer>). Thus you need to declare the same handlers and modules for both sections in order to run your application normally regardless the application pool mode.
I hope this points you into the right direction.
Regards,
Stef
Telerik
Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.