Hello fellas
Me and my team uses telerik silverlight fine. Nowadays we are advancing from http to https. The entire project has moved https, works well! , except telerik reports. The project uses custom binding. Is there any reference which uses https? please help.
Me and my team uses telerik silverlight fine. Nowadays we are advancing from http to https. The entire project has moved https, works well! , except telerik reports. The project uses custom binding. Is there any reference which uses https? please help.
3 Answers, 1 is accepted
0
Hello,
The Reporting WCF service is standard WCF service, and as such can be configured to work over HTTPS. Please check the following help article - How to: Enable SSL for Telerik Reporting WCF service. If the described configuration does not help you to resolve the problem, please double check the endpoints settings, at both client and sever. Also verify the used custom Bindings use proper security mode.
I hope the above information helps you.
Regards,
Stef
Telerik
The Reporting WCF service is standard WCF service, and as such can be configured to work over HTTPS. Please check the following help article - How to: Enable SSL for Telerik Reporting WCF service. If the described configuration does not help you to resolve the problem, please double check the endpoints settings, at both client and sever. Also verify the used custom Bindings use proper security mode.
I hope the above information helps you.
Regards,
Stef
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
0

TURKALP
Top achievements
Rank 1
answered on 18 Sep 2014, 08:32 PM
Hello Stef..
I carefully followed your instructions, and took a deep search through google , telerik reporting with https (SSL) enabled keywords, but my problem still persists similar to http://www.telerik.com/forums/silverlight-reportviewer-throws-async-exceptionoccurred ,with no solution.
I think, the cause of the problem is unknown... I tried changing endpoints, web,config, but no result....
Could you give me a demo, representing the telerik demo with https SSL enabled working?
So, I would see the real cause of this problem.
I carefully followed your instructions, and took a deep search through google , telerik reporting with https (SSL) enabled keywords, but my problem still persists similar to http://www.telerik.com/forums/silverlight-reportviewer-throws-async-exceptionoccurred ,with no solution.
I think, the cause of the problem is unknown... I tried changing endpoints, web,config, but no result....
Could you give me a demo, representing the telerik demo with https SSL enabled working?
So, I would see the real cause of this problem.
0
Hi,
Please test the following settings:
Regards,
Stef
Telerik
Please test the following settings:
- Configure the service as follows:
<
system.serviceModel
>
<
serviceHostingEnvironment
aspNetCompatibilityEnabled
=
"true"
/>
<
bindings
>
<
basicHttpBinding
>
<
binding
name
=
"BasicHttpBindingConfig"
>
<
security
mode
=
"Transport"
/>
</
binding
>
</
basicHttpBinding
>
<
webHttpBinding
>
<
binding
name
=
"WebHttpBindingConfig"
>
<
security
mode
=
"Transport"
/>
</
binding
>
</
webHttpBinding
>
</
bindings
>
<
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"
bindingConfiguration
=
"WebHttpBindingConfig"
behaviorConfiguration
=
"WebBehavior"
contract
=
"Telerik.Reporting.Service.IResourceService"
/>
<
endpoint
address
=
"mex"
binding
=
"mexHttpsBinding"
contract
=
"IMetadataExchange"
/>
</
service
>
</
services
>
<
behaviors
>
<
serviceBehaviors
>
<
behavior
name
=
"ReportServiceBehavior"
>
<
serviceMetadata
httpsGetEnabled
=
"true"
httpGetEnabled
=
"false"
/>
<
serviceDebug
includeExceptionDetailInFaults
=
"false"
/>
</
behavior
>
</
serviceBehaviors
>
<
endpointBehaviors
>
<
behavior
name
=
"WebBehavior"
>
<
webHttp
/>
</
behavior
>
</
endpointBehaviors
>
</
behaviors
>
</
system.serviceModel
>
The service would run at https://localhost/CSharp.SilverlightDemo.Web/ReportService.svc
-
In the client we specifying the security mode and the endpoint address of the service
Stream file;
void
Test()
{
var fileDlg =
new
SaveFileDialog();
fileDlg.Filter =
"PDF files|*.pdf|All files|*.*"
;
if
(fileDlg.ShowDialog() ==
true
)
{
//set any deviceInfo settings if necessary
var deviceInfo =
new
NameValueDictionary();
//set any report parameter value if necessary
var parameters =
new
NameValueDictionary();
this
.file = fileDlg.OpenFile();
BasicHttpBinding bndReport =
new
BasicHttpBinding(BasicHttpSecurityMode.Transport);
bndReport.MaxReceivedMessageSize =
int
.MaxValue;
bndReport.MaxBufferSize =
int
.MaxValue;
string
ReportServiceURL =
new
Uri(App.Current.Host.Source,
"../ReportService.svc"
).ToString();
var serviceClient =
new
ReportServiceClient(bndReport,
new
EndpointAddress(ReportServiceURL));
serviceClient.RenderAsync(
"PDF"
,
"Telerik.Reporting.Examples.CSharp.ReportCatalog, CSharp.ReportLibrary"
,
null
,
deviceInfo,
parameters);
serviceClient.RenderCompleted +=
new
EventHandler<RenderEventArgs>(serviceClient_RenderCompleted);
}
}
void
serviceClient_RenderCompleted(
object
sender, RenderEventArgs e)
{
var result = e.RenderingResult;
if
(
this
.file !=
null
)
{
this
.file.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
this
.file.Close();
this
.file.Dispose();
this
.file =
null
;
}
}
The above settings assume the application is hosted in IIS with enabled SSL, where the application runs at https://localhost/CSharp.SilverlightDemo.Web.
Regards,
Stef
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.