shema information errors in App.config

2 posts, 0 answers
  1. Raul
    Raul avatar
    33 posts
    Member since:
    Apr 2014

    Posted 20 Nov 2014 Link to this post

    Hello,

    I'm currently testing telerik reports and have some issues.

    I need to format a TimeSpan value to hh:mm (without seconds), but unfortunately the corresonding format did not work because it displays also the seconds part :(
    So I decided to use a user defined function (also in order to test it). Therefore I needed to add some lines to the App.config file:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <configSections>
            <section
                    name="Telerik.Reporting"
                    type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"
                    allowLocation="true"
                    allowDefinition="Everywhere"/>
        </configSections>
        <startup>
            <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
        </startup>
        <runtime>
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                <dependentAssembly>
                    <assemblyIdentity name="Microsoft.Practices.ServiceLocation" publicKeyToken="31bf3856ad364e35" culture="neutral" />
                    <bindingRedirect oldVersion="0.0.0.0-1.2.0.0" newVersion="1.2.0.0" />
                </dependentAssembly>
            </assemblyBinding>
        </runtime>
        <Telerik.Reporting>
            <AssemblyReferences>
                <add name="ReportsDO" version="1.0.0.0" culture="neutral" publicKeyToken="null"/>
            </AssemblyReferences>
        </Telerik.Reporting>
    </configuration>

    But now I'm getting some "schema information not found" errors:

    Die Schemainformationen für das Attribut 'culture' konnten nicht gefunden werden.  
    Die Schemainformationen für das Attribut 'name' konnten nicht gefunden werden. 
    Die Schemainformationen für das Attribut 'publicKeyToken' konnten nicht gefunden werden.   
    Die Schemainformationen für das Attribut 'version' konnten nicht gefunden werden.  
    Die Schemainformationen für das Element 'add' konnten nicht gefunden werden.   
    Die Schemainformationen für das Element 'AssemblyReferences' konnten nicht gefunden werden.
    Die Schemainformationen für das Element 'Telerik.Reporting' konnten nicht gefunden werden. 

    Without the telerik content I don't get any errors and can see the report (but the user function can not be found). With the telerik content the .trdx file seems to be not loaded.

    I'm using the latest report version and the standalone report designer. Program is WPF.

    After 2 days of searching informations all over the internet and a lot of try and error I don't know how to continue...


    Regards
    Raul
  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 25 Nov 2014 Link to this post

    Hello Raul,

    The Standalone Designer tool's configuration file must look as in the Configuration article. To extend the tool with an external assembly, you need to change the AssemblyReferences section.

    Please compare the configuration files and test to remove the culture and publicKeyToken attributes.


    If you need further help, feel free to open a support ticket and send us the assembly including the config file to test your settings.

    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.

     
Back to Top