Advanced reporting
and data visualization components for .NET
LIVE CHAT Welcome, guest

 





SSL failures in Silverlight Viewer for Reporting Services 2005
Display Posts for:
Invert
Dmitrijs Jurins 03/08/2010 06:24
SSL failures in Silverlight Viewer for Reporting Services 2005

Hi,

I am unable to run reports with Silverlight Viewer for Reporting Services when SSL is enabled.

For testing purposes I have taken one of sample applications provided with Silverlight Viewer installation. I have also followed Getting Started document to deploy SSL.

In a result my SampleApplication.Server is hosted in IIS which is configured to use development SSL certificate (works for other web apps). I am accessing it by url=https://localhost/SampleApplication.Server/Default.aspx.
The Web.config serviceModel section is the following:
Code:
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="webBehavior">
<webHttp/>
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="SampleApplication.Server.ReportServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<services>
<service behaviorConfiguration="SampleApplication.Server.ReportServiceBehavior" name="SampleApplication.Server.ReportService">
<endpoint address="" bindingConfiguration="basicHttpBindingConf"
binding="basicHttpBinding" contract="PerpetuumSoft.Reporting.Silverlight.Server.Core.IReportService">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="rest" behaviorConfiguration="webBehavior" binding="webHttpBinding"
bindingConfiguration="webHttpBindingConf" contract="PerpetuumSoft.Reporting.Silverlight.Server.Core.IReportServiceResources"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<bindings>
<webHttpBinding>
<binding name="webHttpBindingConf"/>
</webHttpBinding>
<basicHttpBinding>
<binding name="basicHttpBindingConf"/>
</basicHttpBinding>
</bindings>


</system.serviceModel>

Report viewer is configured as follows:
Code:
<rss:ReportViewer
x:Name="reportViewer"
ServiceUrl="https://localhost/SampleApplication.Server/ReportService.svc"
ReportName="/Reports/SampleReport"
ReportError="reportViewer_ReportError"/>


The problem is the following: I keep receiving Communication exceptions from ReportViewer:
Quote:
System.ServiceModel.CommunicationException: An error occurred while trying to make a request to URI 'https://localhost/SampleApplication.Server/ReportService.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details. ---> System.Security.SecurityException ---> System.Security.SecurityException: Security error.
at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
--- End of inner exception stack trace ---
at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
--- End of inner
Dmitrijs Jurins 03/08/2010 06:31
SSL failures in Silverlight Viewer for Reporting Services 2005

As far as this scenario is really easy to simulate, I really hope for fast and high quality support, guys. Mostly because SSL is an important part of any enterprise application.
Thanks.
Vlad Nekrasov 03/12/2010 06:03
SSL failures in Silverlight Viewer for Reporting Services 2005

Hello,

Please see the documentation on your problem here:

http://www.perpetuumsoftware.com/support/Settings_SSL.doc

Best regards,
Vlad Nekrasov
Perpetuum Software Team
Dmitrijs Jurins 03/15/2010 10:30
SSL failures in Silverlight Viewer for Reporting Services 2005

Thanks, it does the job.
Vlad Nekrasov 03/15/2010 11:22
SSL failures in Silverlight Viewer for Reporting Services 2005

Best regards,
Perpetuum Software Team