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

Invalid object name 'voa_keygen'

4 Answers 284 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.
Duncan
Top achievements
Rank 2
Duncan asked on 06 Dec 2011, 10:13 PM
I have just added the .Net membership tables to my database using aspnet_regsql.exe and now i am getting the error Invalid object name 'voa_keygen'...

Any ideas on what is going on here. I have received this once before when there was no Primary key on a table but i have checked for that and am not finding anything wrong with this... What else should i be looking for?

Duncan

4 Answers, 1 is accepted

Sort by
0
Duncan
Top achievements
Rank 2
answered on 06 Dec 2011, 10:22 PM
I do also have a new table with UserId as a primary key. It is of type Guid and has a relation to aspnet_Users membership table. I suspect that this Guid primary key may be the issue. This is my first table with the Guid as a PK so i am not to sure how to handle this with OpenAccess...
0
Duncan
Top achievements
Rank 2
answered on 06 Dec 2011, 10:58 PM
So i guess it does not make sense to include the .Net membership tabled in the entities diagram as you not supposed to be editing these tables directly anyways. So removing them seems to get rid of the issue.
0
Damyan Bogoev
Telerik team
answered on 07 Dec 2011, 05:32 PM
Hello Duncan,

This table is required by OpenAccess when one or more classes in the model use the HighLow KeyGenerator(default Identity Mechanism). Telerik OpenAccess ORM uses the "voa_keygen" table to store some system values.
You could the Update Database from Model wizard to create this table in the database.
Hope that helps.

Best wishes,
Damyan Bogoev
the Telerik team

Q3’11 of Telerik OpenAccess ORM is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Rui
Top achievements
Rank 1
answered on 27 Mar 2012, 12:03 PM
Check Many-to-many relations... Maybe you are doing something wrong.
Tags
General Discussions
Asked by
Duncan
Top achievements
Rank 2
Answers by
Duncan
Top achievements
Rank 2
Damyan Bogoev
Telerik team
Rui
Top achievements
Rank 1
Share this question
or