1. Create a Class Library Class solution
a. Solution Name: ORM1
b. Class Project: ORMClass
2. I enable OpenAccess
3. Select Persistent classes
4. Assign
a. Connection ID = mydb
b. Server Name = innovator
c. Database Name = dbORM
5. Click on Test button and get dialog box with a good connection message.
6. Click Finish.
7. Select OpenAccess and select reverse mapping
8. Click on Generate & Save Configuration (two simple tables)
9. Create a new project by selecting New -> New Project and select Web Application
10. Enable project to ORM (Select OpenAccess > Enable Project to Use ORM)
11. Add reference to class project (ORMClass)
12. Open default.aspx
13. Add Telerik RADscriptmanager and radgrid.
14. Set configuration for radgrid to use ORM connection.
15. Compile
16. Run
17. Get following error:
The connection section with id 'mydb' cannot be found in the configuration files traversed from '(OpenAccess internally generated, maybe web page)'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
|
Any help will be greatly appreciated.
Ray