Hi all gurus,
we're developing a SL4 app with reporting. In our developing environment reporting works smoothly. Now I'm trying to deploy to a test server and get an error ("No report" inside ReportViewer). Calling the service directly from the browser I get this error:
Type 'Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE', specified as Service attribute in the ServiceHost directive or specified in the system.serviceModel/serviceHostingEnvironment/serviceActivations configuration element was not found (message translated from italian).
The same app uses others WCF services, served smoothly.
I've double-checked that there are no older versions of Telerik. So I installed VS2010, RadControls and Reporting components (both trial, working well in my dev env), compiled and run, with same error. What else I can try?
Web.Config and TelerikService.svc enclosed. Thanks in advance.
====================================================================
TelerikService.svc:
-------------------------------------------------------------------------------------------------------------
<%@ServiceHost Service="Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE" %>
==================================================================
Web.Config:
------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="system.serviceModel">
<section name="domainServices" type="System.ServiceModel.DomainServices.Hosting.DomainServicesSection, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</sectionGroup>
</configSections>
<connectionStrings>
<clear />
<add name="UGo_DB" connectionString="data source=(local)\SQL_UGO;Integrated Security=SSPI;Initial Catalog=UGO_DB;" providerName="System.Data.SqlClient" />
<add name="Progr_Entities" connectionString="metadata=res://*/Models.Progr.csdl|res://*/Models.Progr.ssdl|res://*/Models.Progr.msl;provider=System.Data.SqlClient;provider connection string="Data Source=.\SQL_UGO;Initial Catalog=UGO_DB;Integrated Security=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
</connectionStrings>
<system.web>
<httpModules>
<add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpModules>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</assemblies>
</compilation>
<roleManager enabled="true" />
<authentication mode="Forms">
<forms name=".UGO_Adv_ASPXAUTH" />
</authentication>
<profile>
<properties>
<add name="FriendlyName" />
</properties>
</profile>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
<add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</modules>
</system.webServer>
<system.serviceModel>
<domainServices>
<endpoints>
<add name="OData" type="System.ServiceModel.DomainServices.Hosting.ODataEndpointFactory, System.ServiceModel.DomainServices.Hosting.OData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</endpoints>
</domainServices>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
<behavior name="ReportServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="WebBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<customBinding>
<binding name="UGO_Adv.updProg.customBinding0">
<binaryMessageEncoding />
<httpTransport />
</binding>
</customBinding>
</bindings>
<services>
<service name="UGO_Adv.updProg">
<endpoint address="" binding="customBinding" bindingConfiguration="UGO_Adv.updProg.customBinding0" contract="UGO_Adv.updProg" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<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>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<appSettings>
<add key="microsoft.visualstudio.teamsystems.backupinfo" value="1;web.config.backup" />
</appSettings>
</configuration>
=========================================================================
we're developing a SL4 app with reporting. In our developing environment reporting works smoothly. Now I'm trying to deploy to a test server and get an error ("No report" inside ReportViewer). Calling the service directly from the browser I get this error:
Type 'Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE', specified as Service attribute in the ServiceHost directive or specified in the system.serviceModel/serviceHostingEnvironment/serviceActivations configuration element was not found (message translated from italian).
The same app uses others WCF services, served smoothly.
I've double-checked that there are no older versions of Telerik. So I installed VS2010, RadControls and Reporting components (both trial, working well in my dev env), compiled and run, with same error. What else I can try?
Web.Config and TelerikService.svc enclosed. Thanks in advance.
====================================================================
TelerikService.svc:
-------------------------------------------------------------------------------------------------------------
<%@ServiceHost Service="Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE" %>
==================================================================
Web.Config:
------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="system.serviceModel">
<section name="domainServices" type="System.ServiceModel.DomainServices.Hosting.DomainServicesSection, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</sectionGroup>
</configSections>
<connectionStrings>
<clear />
<add name="UGo_DB" connectionString="data source=(local)\SQL_UGO;Integrated Security=SSPI;Initial Catalog=UGO_DB;" providerName="System.Data.SqlClient" />
<add name="Progr_Entities" connectionString="metadata=res://*/Models.Progr.csdl|res://*/Models.Progr.ssdl|res://*/Models.Progr.msl;provider=System.Data.SqlClient;provider connection string="Data Source=.\SQL_UGO;Initial Catalog=UGO_DB;Integrated Security=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
</connectionStrings>
<system.web>
<httpModules>
<add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpModules>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</assemblies>
</compilation>
<roleManager enabled="true" />
<authentication mode="Forms">
<forms name=".UGO_Adv_ASPXAUTH" />
</authentication>
<profile>
<properties>
<add name="FriendlyName" />
</properties>
</profile>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
<add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</modules>
</system.webServer>
<system.serviceModel>
<domainServices>
<endpoints>
<add name="OData" type="System.ServiceModel.DomainServices.Hosting.ODataEndpointFactory, System.ServiceModel.DomainServices.Hosting.OData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</endpoints>
</domainServices>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
<behavior name="ReportServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="WebBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<customBinding>
<binding name="UGO_Adv.updProg.customBinding0">
<binaryMessageEncoding />
<httpTransport />
</binding>
</customBinding>
</bindings>
<services>
<service name="UGO_Adv.updProg">
<endpoint address="" binding="customBinding" bindingConfiguration="UGO_Adv.updProg.customBinding0" contract="UGO_Adv.updProg" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<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>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<appSettings>
<add key="microsoft.visualstudio.teamsystems.backupinfo" value="1;web.config.backup" />
</appSettings>
</configuration>
=========================================================================