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

Deploying to server - No metadata has been registered etc

2 Answers 211 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ashley
Top achievements
Rank 1
Ashley asked on 22 Feb 2013, 09:39 AM
Hi,

I have a project that I am trying to deploy to a server of ours. The server doesn't have OpenAccess installed on it. Installing it is not an option. Locally it works fine. When attempting to run this program on the server (in VS 2012) I get an error at the following line:

public IObjectScope Scope {
    get { return this.GetScope(); }
}

The error is: No metadata has been registered for class 'xxx, xxx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. (This usually indicates, that either this class is not declared persistent or it is declared persistent but not enhanced.

I have the following assemblies included:
- Telerik.OpenAccess
- Telerik.OpenAccess.35.Extensions
- Telerik.OpenAccess.Config
- Telerik.OpenAccess.Runtime
- Telerik.OpenAccess.Web
- Telerik.OpenAccess.Windows

To make things more confusing, this project worked on the server when OpenAccess was installed. We have since uninstalled it.

Any assistance with this will be greatly appreciated.

Thanks,
Ash

2 Answers, 1 is accepted

Sort by
0
Ashley
Top achievements
Rank 1
answered on 25 Feb 2013, 09:44 AM
This happened as I hadn't followed the instructions in this page properly.
0
Accepted
Yordan
Telerik team
answered on 25 Feb 2013, 10:39 AM
Hi Ash,

I am glad that you found the solution to your issue. Indeed, this is the most probable cause for such exceptions.
 
Please feel free to contact us if you have other questions about deploying OpenAccess ORM.

Regards,
Yordan
the Telerik team
Q3'12 SP1 of OpenAccess ORM packs Multi-Table Entities mapping support. Check it out.
Tags
Data Access Free Edition
Asked by
Ashley
Top achievements
Rank 1
Answers by
Ashley
Top achievements
Rank 1
Yordan
Telerik team
Share this question
or