This is a migrated thread and some comments may be shown as answers.

Reverse mapping not avaliable in web service

3 Answers 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Leszek
Top achievements
Rank 1
Leszek asked on 15 May 2009, 11:10 AM
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

3 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 16 May 2009, 08:45 AM
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.
0
Adam
Top achievements
Rank 1
answered on 01 Jul 2009, 08:03 PM
I'm having the same problem.
0
Alexander
Telerik team
answered on 02 Jul 2009, 12:06 PM
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.
Tags
General Discussions
Asked by
Leszek
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Adam
Top achievements
Rank 1
Share this question
or