Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
600
Error on report viewer in ASP
posted

Hi,

I'm new in developing with the Infragistics tools. I have a ASP.Net solution with Report Viewer. When I run the solution I get the error "Cannot establish a connection with the Report Server." without any detail on the error.

I checked the code completely and cannot find the reason why it generates this error.

Is there any way someone can help me?

Best Regards,

Geert De Vylder

 

Parents Reply
  • 600
    posted in reply to Lucia Rodriguez

    Hi Leo,

    First I have a service ICPReportService.svc in the root of the ReportViewer project with the following code:

    %@ServiceHost Language="C#" Debug="true" Service="Infragistics.Reports.Server.ReportProcessorService, InfragisticsWPF4.Reports.Server.v12.2, Version=12.2.20122.1014, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %

     

    Second I do have the Web.config file with the following XML code:

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

        <configSections>

            <section name="infragistics.reports" type="Infragistics.Reports.ReportsConfigurationSection, InfragisticsWPF4.Reports.Client.v12.2"/>

        </configSections>

        <!-- Report Service configurations are ALL optional -->

        <!-- The includeExceptionDetail must be true to get server exceptions in the client -->

        <!-- sessionStorageService specifies the temp data folder for the Storage Service -->

        <infragistics.reports>

            <reportServer includeExceptionDetail="true" cleanupIntervalInMinutes="10" timeoutInMinutes="10" />

            <sessionStorageService temporaryFolder="c:\temp"/>

        </infragistics.reports>

        <connectionStrings>

          <add name="ICP.Reporting.ReportingClassLibrary.Properties.Settings.sqlDS_Gebruikers_ICP"

                  connectionString="Data Source=DBDEV-ACC01;Initial Catalog=ICP;Integrated Security=True"

                  providerName="System.Data.SqlClient" />

          <add name="ICP.Reporting.ReportingClassLibrary.Properties.Settings.sqlDS_Gebruikers_Status"

              connectionString="Data Source=DBDEV-ACC01;Initial Catalog=ICP;Integrated Security=True"

              providerName="System.Data.SqlClient" />

      </connectionStrings>

      <system.web>

        <globalization culture="nl-NL" uiCulture="nl-NL" fileEncoding="utf-8"/>

        <httpHandlers>

          <add path="*.igrResource" verb="*" type="Infragistics.Reports.Server.ResourcesHandler, InfragisticsWPF4.Reports.Server.v12.2, Version=12.2.20122.1014, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"

            validate="false" />

        </httpHandlers>

        <httpModules>

          <add name="ReportProcessorServiceModule" type="Infragistics.Reports.Server.ReportProcessorServiceModule, InfragisticsWPF4.Reports.Server.v12.2, Version=12.2.20122.1014, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />

        </httpModules>

        <compilation debug="true" targetFramework="4.0" />

        <membership>

          <providers>

            <clear/>

            <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"

                 enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"

                 maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"

                 applicationName="/" />

          </providers>

        </membership>

         <profile>

          <providers>

            <clear/>

            <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>

          </providers>

        </profile> 

        <roleManager enabled="false">

          <providers>

            <clear/>

            <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />

            <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />

          </providers>

        </roleManager>

       </system.web> 

      <system.webServer>

         <modules runAllManagedModulesForAllRequests="true"/>

      </system.webServer>

      <system.serviceModel>

        <behaviors>

          <endpointBehaviors>

            <behavior name="SilverlightFaultBehavior">

              <silverlightFaults />

            </behavior>

            <behavior name="JsonFaultBehavior">

              <enableWebScript />

              <jsonFaults />

            </behavior>

          </endpointBehaviors>

          <serviceBehaviors>

            <behavior name="ReportProcessorServiceBehavior">

              <serviceMetadata httpGetEnabled="true" />

              <serviceDebug includeExceptionDetailInFaults="false" />

            </behavior>

          </serviceBehaviors>

        </behaviors>

        <bindings>

          <customBinding>

            <binding name="binaryHttpBinding">

              <binaryMessageEncoding />

              <httpTransport />

            </binding>

          </customBinding>

        </bindings>

        <extensions>

          <behaviorExtensions>

            <add name="silverlightFaults" type="Infragistics.Reports.Server.SilverlightFaultBehavior, InfragisticsWPF4.Reports.Server.v12.2, Version=12.2.20122.1014, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />

            <add name="jsonFaults" type="Infragistics.Reports.Server.JsonErrorWebHttpBehaviorElement, InfragisticsWPF4.Reports.Server.v12.2, Version=12.2.20122.1014, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />

          </behaviorExtensions>

        </extensions>

        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

        <services>

          <service behaviorConfiguration="ReportProcessorServiceBehavior"

            name="Infragistics.Reports.Server.ReportProcessorService">

            <endpoint address="soapAddress" behaviorConfiguration="SilverlightFaultBehavior"

              binding="customBinding" bindingConfiguration="binaryHttpBinding"

              contract="Infragistics.Reports.Server.IReportProcessorService">

              <identity>

                <dns value="localhost" />

              </identity>

            </endpoint>

            <endpoint address="ajaxAddress" behaviorConfiguration="JsonFaultBehavior"

              binding="webHttpBinding" contract="Infragistics.Reports.Server.IReportProcessorService" />

            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

          </service>

        </services>

      </system.serviceModel>

    </configuration>

     

     

    I’m working and running the solution on a Windows 8 Pro machine with Visual Studio 2010 Pro.

    Today I ran the solution on a Windows 7 Pro machine with Visual Studio 2010 Pro and got the following error message in the web browser:

     

    Server Error in '/' Application.

    Configuration Error

     

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

     

    Parser Error Message: Could not load file or assembly 'InfragisticsWPF4.Reports.Server.v12.2, Version=12.2.20122.1014, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. The system cannot find the file specified. (G:\ICP.Reporting\ICP.Reporting.ReportViewer\web.config line 36)

     

    Source Error:

    Line 34:     </httpHandlers>

    Line 35:     <httpModules>

    Line 36:       <add name="ReportProcessorServiceModule" type="Infragistics.Reports.Server.ReportProcessorServiceModule, InfragisticsWPF4.Reports.Server.v12.2, Version=12.2.20122.1014, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />

    Line 37:     </httpModules>

    Line 38:     <compilation debug="true" targetFramework="4.0" />

     

    Source File: G:\ICP.Reporting\ICP.Reporting.ReportViewer\web.config    Line: 36

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

     

     

    I hope all of this helps to find out what is going wrong.

    Is there a way to upload the complete solution so you can have a look at the complete solution?

     

    Thank you very much for your help and assistance.

     

    Best Regards,

     

    Geert

Children