This is a migrated thread and some comments may be shown as answers.
Error: To prevent possible lost...
1 Answer 53 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexandre
Top achievements
Rank 2
Alexandre asked on 14 Sep 2009, 06:24 PM
Hi guys, I'm very new user of Telerik components and I'm reading Open Access Tutorial and I have some questions, I develop solucition describe in item 4.4 - Telerik Reporting Example, but when I try to get a Preview of the report I receive the error message: ]

An error has ocurred  while processing Report ":
The 'openaccess' section cannot be found in the application's configuration file.

But this sectino existes in App.config file like bellow:

<openaccess xmlns="http://www.telerik.com/OpenAccess">
    <references>
      <reference assemblyname="Model" configrequired="True" />
    </references>
    <connections>
      <connection id="NorthwindConnection">
        <databasename>NorthwindOA</databasename>
        <servername>(LOCAL)\SQLEXPRESS2005</servername>
        <integratedSecurity>False</integratedSecurity>
        <user>sa</user>
        <password>123</password>
        <backendconfigurationname>mssqlConfiguration</backendconfigurationname>
      </connection>
    </connections>
    <backendconfigurations>
      <backendconfiguration id="mssqlConfiguration" backend="mssql">
        <mappingname>mssqlMapping</mappingname>
      </backendconfiguration>
    </backendconfigurations>
    <mappings current="mssqlMapping">
      <mapping id="mssqlMapping" />
    </mappings>
  </openaccess>

So I try to open the exemple made by Telerik but Visual Studio 2008 can't preview the Report and give me message:

To prevent possible data loss before loading the designer, the following erros must be solved:
Value cannot be null. Parameter name: instance

Can anyone help me?

1 Answer, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 17 Sep 2009, 11:43 AM
Hello Alexandre,

Is it possible that one of your referenced assembly is missing the OpenAccess node in its configuration file? For example if you have an assembly that hold your persistent classes and another assembly that holds the reports and only the assembly holding the records is configured this might rise an exception. If that is not the case can you please provide us with some additional information on your setup so that we can reproduce the problem here locally. We are looking forward for your replay.

All the best,
Petar
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Alexandre
Top achievements
Rank 2
Answers by
PetarP
Telerik team
Share this question
or