Reverse mapping not avaliable in web service

Thread is closed for posting
4 posts, 0 answers
  1. Leszek
    Leszek avatar
    8 posts
    Member since:
    Jan 2009

    Posted 15 May 2009 Link to this post

    Hi,
    I would like to use Open Access ORM in web service. I've enabled project to using ORM but I have not avaliable options Reverse Mapping in menu. When I'm using Wizzard I have error message "the connection section with id DatabaseConnection1 cannot be found in the configuration file traversed from c:\..\Web.Config
    Verify that the connection section with the same id as the one specifird in the connectionId project Property exist in the configuration file."
    Thanks
    Leszek
  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 16 May 2009 Link to this post

    Hi Leszek,

    Please see my answer to the support ticket that you sent to us.

    Regards,
    Alexander
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Adam
    Adam  avatar
    30 posts
    Member since:
    Jun 2009

    Posted 01 Jul 2009 Link to this post

    I'm having the same problem.
  4. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 02 Jul 2009 Link to this post

    Hi Adam Patacchiola,

    OpenAccess does not allow having mapped classes in web applications (including web services). You can create a separate Class Library project and have the reverse mapped classes in that project. Then you can reference it from the web service and use the persistent classes. Additionally, you should "Enable" the web service after you have set the project reference to the class library. That will create the necessary "openaccess" node in the configuration file and add there a reference to the class library assembly.

    Kind regards,
    Alexander
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top