or
<configuration> <system.web> <compilation debug="false" targetFramework="4.0" /> <authentication mode="Windows"/> <customErrors mode="On" defaultRedirect="GenericErrorPage.aspx"> <!--<error statusCode="404" redirect="Http404ErrorPage.aspx"/>--> </customErrors> </system.web> <connectionStrings> <add name="COTSDev" connectionString="Data Source=csd2011;Initial Catalog=COTS;Persist Security Info=True;User ID=CSDApp1;Password=" providerName="System.Data.SqlClient"/> <add name="COTSProd" connectionString="Data Source=rosebloom.arvixe.com;Initial Catalog=COTS;Persist Security Info=True;User ID=CSDApp1;Password=" providerName="System.Data.SqlClient"/> </connectionStrings> <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> <services> <service name="Cots.Web.CustomReportService" 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="ReportServiceBehavior"> <serviceMetadata httpGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> <endpointBehaviors> <behavior name="WebBehavior"> <webHttp/> </behavior> </endpointBehaviors> </behaviors> </system.serviceModel></configuration><%@ServiceHost Service="Cots.Web.CustomReportService, Cots.Web" %>namespace Cots.Web{ using Telerik.Reporting.Service; using Telerik.Reporting; using System.IO; public class CustomReportService : ReportService { // static readonly IReportResolver resolvers = new CustomReportResolverWithFallBack( new ReportTypeResolver( new ReportFileResolver( new ReportFileResolverWeb(null)))); public CustomReportService() { this.ReportResolver = resolvers; } } class CustomReportResolverWithFallBack : IReportResolver { readonly IReportResolver parentResolver; public CustomReportResolverWithFallBack(IReportResolver parentResolver) { this.parentResolver = parentResolver; } public ReportSource Resolve(string report) { FileInfo oFI = new FileInfo(report); ReportSource reportDocument = this.CustomReportResolver(report); if (null == reportDocument && null != this.parentResolver) { reportDocument = this.parentResolver.Resolve(report); } return reportDocument; } public ReportSource CustomReportResolver(string report) { //TODO implement custom report resolving mechanism return null; } }}
Short of uploading the entire project I don't know what else to do!