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

Secure Report Binding

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aaron Ford
Top achievements
Rank 2
Aaron Ford asked on 26 Aug 2010, 12:57 AM
We are trying to bind the Telerik ReportService to a secure site and we get the following error in the viewer "An exception occurred during the operation, making the result invalid.  Check InnerException for exception details."

Here is what our web.config file looks like:

<?

 

 

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/>

 

<

 

 

connectionStrings>

 

<

 

 

add name="TestSite.Reports.Properties.Settings.TestDatabase" connectionString="Data Source=test\sqlexpresscreate;Initial Catalog=TestDatabase;Persist Security Info=True;User ID=testuser;Password=test123" providerName="System.Data.SqlClient" />

 

</

 

 

connectionStrings>

 

<

 

 

system.web>

 

<

 

 

compilation debug="false" targetFramework="4.0" />

 

<

 

 

authentication mode="Windows"/>

 

<

 

 

authorization>

 

<

 

 

allow roles="Domain\Group1,Domain\Group2,Domain\Group3" />

 

<

 

 

deny users="*" />

 

</

 

 

authorization>

 

</

 

 

system.web>

 

<

 

 

system.serviceModel>

 

<

 

 

bindings>

 

<

 

 

webHttpBinding>

 

<

 

 

binding name="webHttpBinding">

 

<

 

 

security mode="Transport">

 

<

 

 

transport clientCredentialType="Windows" proxyCredentialType="None"/>

 

</

 

 

security>

 

</

 

 

binding>

 

</

 

 

webHttpBinding>

 

<

 

 

wsHttpBinding>

 

<

 

 

binding name="wsHttpBinding">

 

<!--

 

 

FOR SECURE-HTTPS -->

 

<

 

 

security mode="Transport">

 

<

 

 

transport clientCredentialType="Windows" proxyCredentialType="None"/>

 

</

 

 

security>

 

<!--

 

 

FOR NORMAL (DO NOTHING)-->

 

</

 

 

binding>

 

</

 

 

wsHttpBinding>

 

</

 

 

bindings>

 

<

 

 

behaviors>

 

<

 

 

serviceBehaviors>

 

<

 

 

behavior name="AllMyServiceBehaviors">

 

<

 

 

serviceMetadata httpsGetEnabled="true" httpsGetUrl=""/>

 

<!--

 

 

FOR NORMAL <serviceMetadata httpGetEnabled="true" /> -->

 

<

 

 

serviceDebug includeExceptionDetailInFaults="true"/>

 

</

 

 

behavior>

 

</

 

 

serviceBehaviors>

 

<

 

 

endpointBehaviors>

 

<

 

 

behavior name="scriptEndPointBehavior">

 

<

 

 

webHttp/>

 

<

 

 

enableWebScript/>

 

</

 

 

behavior>

 

</

 

 

endpointBehaviors>

 

</

 

 

behaviors>

 

<

 

 

services>

 

<

 

 

service name="Site.Web.SiteService" behaviorConfiguration="AllMyServiceBehaviors">

 

<

 

 

endpoint bindingNamespace="site.sitesite.org.services" address="wsHttpBinding" binding="wsHttpBinding" contract="PPD.Web.IPPDService" bindingConfiguration="wsHttpBinding">

 

</

 

 

endpoint>

 

</

 

 

service>

 

<

 

 

service name="Telerik.Reporting.Service.ReportService" behaviorConfiguration="AllMyServiceBehaviors">

 

<

 

 

endpoint bindingNamespace="site.sitesite.org.services" address="wsHttpBinding" binding="wsHttpBinding" contract="Telerik.Reporting.Service.IReportService" bindingConfiguration="wsHttpBinding">

 

</

 

 

endpoint>

 

</

 

 

service>

 

</

 

 

services>

 

<

 

 

serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />

 

</

 

 

system.serviceModel>

 

</

 

 

configuration>

 

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 27 Aug 2010, 01:48 PM
Hello Aaron Ford,

As you can see from our online demos, the Telerik Reporting WCF service works properly under https and you can find more information in the Enable SSL for Telerik Reporting WCF service help article.

In order to get more information about the actual problem hiding behind the "An exception occurred during .." error  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.

All the best,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Aaron Ford
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or